X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=test%2Ftest-functions;fp=test%2Ftest-functions;h=42c954d5658fe18773c9fbe673d0c623ed461bc5;hp=a0f1bf4eb2a3ca27bedc591cd68c58b4e9aeb68a;hb=53d90f9582f96208b3674da823ad1a3d2c3b1aa4;hpb=3486cb6cfa3d32a95c0daf02c7510fdf372507bf diff --git a/test/test-functions b/test/test-functions index a0f1bf4eb..42c954d56 100644 --- a/test/test-functions +++ b/test/test-functions @@ -293,7 +293,8 @@ install_terminfo() { } setup_testsuite() { - cp $TEST_BASE_DIR/{testsuite.target,end.service} $initdir/etc/systemd/system/ + cp $TEST_BASE_DIR/testsuite.target $initdir/etc/systemd/system/ + sed "s#@SYSTEMCTL@#$(type -P systemctl)#g" $TEST_BASE_DIR/end.service.in > $initdir/etc/systemd/system/end.service mkdir -p $initdir/etc/systemd/system/testsuite.target.wants ln -fs $TEST_BASE_DIR/testsuite.service $initdir/etc/systemd/system/testsuite.target.wants/testsuite.service