summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
Diffstat (limited to 'test/system')
-rw-r--r--test/system/250-generate-systemd.bats6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/system/250-generate-systemd.bats b/test/system/250-generate-systemd.bats
index 20a73c726..a8eb3b0a6 100644
--- a/test/system/250-generate-systemd.bats
+++ b/test/system/250-generate-systemd.bats
@@ -12,7 +12,11 @@ UNIT_FILE="$UNIT_DIR/$SERVICE_NAME.service"
function setup() {
basic_setup
- mkdir -p "$UNIT_DIR"
+
+ if [ ! -d "$UNIT_DIR" ]; then
+ mkdir -p "$UNIT_DIR"
+ systemctl --user daemon-reload
+ fi
}
function teardown() {