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

View file

@ -5,7 +5,7 @@ set -o pipefail
systemd-run --wait -p FailureAction=poweroff true systemd-run --wait -p FailureAction=poweroff true
! systemd-run --wait -p SuccessAction=poweroff false ! systemd-run --wait -p SuccessAction=poweroff false
if test -f /firstphase ; then if ! test -f /firstphase ; then
echo OK > /firstphase echo OK > /firstphase
systemd-run --wait -p SuccessAction=reboot true systemd-run --wait -p SuccessAction=reboot true
else else