]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/TEST-18-FAILUREACTION: fix typo to actually run firstphase action
authorDan Streetman <ddstreet@canonical.com>
Mon, 22 Jul 2019 17:47:47 +0000 (13:47 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Aug 2019 03:46:39 +0000 (12:46 +0900)
The if test for running the firstphase of the test should be negated
so the firstphase is actually executed.

test/TEST-18-FAILUREACTION/testsuite.sh

index bf9c0257667a1e2f19e7471fc0fa3d91abc00bfb..6ab2638d8ce3be0c6d239d8cf5e3759aa3442fd2 100755 (executable)
@@ -5,7 +5,7 @@ set -o pipefail
 systemd-run --wait -p FailureAction=poweroff true
 ! systemd-run --wait -p SuccessAction=poweroff false
 
-if test -f /firstphase ; then
+if test -f /firstphase ; then
     echo OK > /firstphase
     systemd-run --wait -p SuccessAction=reboot true
 else