From: Lennart Poettering Date: Tue, 27 Nov 2018 16:30:23 +0000 (+0100) Subject: test: make TEST-27 non-racy X-Git-Tag: v240~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=324ca05459422b55cb6fa04318552541159c239a;p=thirdparty%2Fsystemd.git test: make TEST-27 non-racy Not sure how I missed this, but we of course need to wait for the "systemd-run" commands to finish before we can check the output files this generated. --- diff --git a/test/TEST-27-STDOUTFILE/testsuite.sh b/test/TEST-27-STDOUTFILE/testsuite.sh index 75559e03e51..b8fcc46e336 100755 --- a/test/TEST-27-STDOUTFILE/testsuite.sh +++ b/test/TEST-27-STDOUTFILE/testsuite.sh @@ -7,7 +7,7 @@ set -o pipefail systemd-analyze set-log-level debug systemd-analyze set-log-target console -systemd-run --unit=one -p StandardOutput=file:/tmp/stdout -p StandardError=file:/tmp/stderr -p Type=exec sh -c 'echo x ; echo y >&2' +systemd-run --wait --unit=one -p StandardOutput=file:/tmp/stdout -p StandardError=file:/tmp/stderr -p Type=exec sh -c 'echo x ; echo y >&2' cmp /tmp/stdout <&2' +systemd-run --wait --unit=two -p StandardOutput=file:/tmp/stdout -p StandardError=file:/tmp/stderr -p Type=exec sh -c 'echo z ; echo a >&2' cmp /tmp/stdout <&2' +systemd-run --wait --unit=three -p StandardOutput=append:/tmp/stdout -p StandardError=append:/tmp/stderr -p Type=exec sh -c 'echo b ; echo c >&2' cmp /tmp/stdout <