test/TEST-18-FAILUREACTION: fix typo to actually run firstphase action

The if test for running the firstphase of the test should be negated
so the firstphase is actually executed.
This commit is contained in:
Dan Streetman 2019-07-22 13:47:47 -04:00 committed by Yu Watanabe
parent adcc450f46
commit 65c5f3d074
1 changed files with 1 additions and 1 deletions

View File

@ -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