hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
[systemd.io.git] / test / units / TEST-18-FAILUREACTION.sh
blob364c20d863353f0c50b6221fedb312a65ecc21d9
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -eux
4 set -o pipefail
6 systemd-run --wait -p FailureAction=poweroff true
7 (! systemd-run --wait -p SuccessAction=poweroff false)
9 if ! test -f /firstphase ; then
10 echo OK >/firstphase
11 systemd-run --wait -p SuccessAction=reboot true
12 else
13 echo OK >/testok
14 systemd-run --wait -p FailureAction=exit -p FailureActionExitStatus=123 false
17 sleep infinity