summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/TEST-01-BASIC/test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
index 606b0dbfaf..66c35fe2b7 100755
--- a/test/TEST-01-BASIC/test.sh
+++ b/test/TEST-01-BASIC/test.sh
@@ -9,8 +9,9 @@ TEST_REQUIRE_INSTALL_TESTS=0
test_append_files() {
# install tests manually so the test is functional even when -Dinstall-tests=false
- mkdir -p $1/usr/lib/systemd/tests/testdata/units/
- cp -v $(dirname $0)/../units/{testsuite-01,end}.service $1/usr/lib/systemd/tests/testdata/units/
+ local dst="$1/usr/lib/systemd/tests/testdata/units/"
+ mkdir -p "$dst"
+ cp -v $TEST_UNITS_DIR/{testsuite-01,end}.service $TEST_UNITS_DIR/testsuite.target "$dst"
}
do_test "$@" 01