]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: let the shell find "touch" instead of hard-coded "/bin/touch"
authorXi Ruoyao <xry111@mengyan1223.wang>
Sun, 18 Nov 2018 18:51:25 +0000 (02:51 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Nov 2018 07:37:36 +0000 (08:37 +0100)
test/test-execute/exec-basic.service

index 456f06951acbc3cd8aca7842e2ef2fbc2dd4f1c2..8b672fcecbc88083b5030f3da787cb16a22bce75 100644 (file)
@@ -2,7 +2,7 @@
 Description=Test for basic execution
 
 [Service]
-ExecStart=touch /tmp/a ; /bin/touch /tmp/b ; touch /tmp/c
+ExecStart=touch /tmp/a ; /bin/sh -c 'touch /tmp/b' ; touch /tmp/c
 ExecStart=test -f /tmp/a
 ExecStart=!test -f /tmp/b
 ExecStart=!!test -f /tmp/c