test: fix UDEV-WANTS testcase for non-bash shells (#7407)
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Nov 2017 16:38:43 +0000 (17:38 +0100)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Tue, 21 Nov 2017 16:38:43 +0000 (17:38 +0100)
testsuite.sh uses "set -o pipefile", which is a bashism, hence use bash
to invoke the script.

test/TEST-17-UDEV-WANTS/test.sh

index 7beef7f..24989eb 100755 (executable)
@@ -32,7 +32,7 @@ test_setup() {
 Description=Testsuite service
 
 [Service]
-ExecStart=/bin/sh -x /testsuite.sh
+ExecStart=/bin/bash -x /testsuite.sh
 Type=oneshot
 StandardOutput=tty
 StandardError=tty