From: Frantisek Sumsal Date: Wed, 17 May 2023 18:14:05 +0000 (+0200) Subject: test: explicitly use bash X-Git-Tag: v254-rc1~454^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6dac790c87a6cd23b9f42455abea9785c80352f;p=thirdparty%2Fsystemd.git test: explicitly use bash To avoid unexpected surprised in CIs with different default shell. --- diff --git a/test/units/testsuite-23.runtime-bind-paths.sh b/test/units/testsuite-23.runtime-bind-paths.sh index c63586e1a2b..8dc4d9123c7 100755 --- a/test/units/testsuite-23.runtime-bind-paths.sh +++ b/test/units/testsuite-23.runtime-bind-paths.sh @@ -27,7 +27,7 @@ echo "MARKER_RUNTIME" >/run/testsuite-23-marker-runtime systemctl bind --mkdir testsuite-23-namespaced.service /run/testsuite-23-marker-runtime /tmp/testfile-marker-runtime -timeout 10 sh -xec 'while [[ "$(systemctl show -P SubState testsuite-23-namespaced.service)" == running ]]; do sleep .5; done' +timeout 10 bash -xec 'while [[ "$(systemctl show -P SubState testsuite-23-namespaced.service)" == running ]]; do sleep .5; done' systemctl is-active testsuite-23-namespaced.service # Now test that systemctl bind fails when attempted on a non-namespaced unit @@ -35,5 +35,5 @@ systemctl start testsuite-23-non-namespaced.service (! systemctl bind --mkdir testsuite-49-non-namespaced.service /run/testsuite-23-marker-runtime /tmp/testfile-marker-runtime) -timeout 10 sh -xec 'while [[ "$(systemctl show -P SubState testsuite-23-non-namespaced.service)" == running ]]; do sleep .5; done' +timeout 10 bash -xec 'while [[ "$(systemctl show -P SubState testsuite-23-non-namespaced.service)" == running ]]; do sleep .5; done' (! systemctl is-active testsuite-23-non-namespaced.service)