1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00
systemd/test/units/testsuite-31.sh
Frantisek Sumsal 084575ff91 test: use set -eux and set -o pipefail everywhere
This should make the scripts more robust.
2021-04-13 12:08:01 +02:00

11 lines
162 B
Bash
Executable File

#!/usr/bin/env bash
set -eux
set -o pipefail
if journalctl -b -t systemd --grep '\.device: Changed plugged -> dead'; then
exit 1
fi
echo OK >/testok
exit 0