]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: slacken plugged -> dead test
authorRichard Maw <richard.maw@codethink.co.uk>
Tue, 5 Dec 2023 18:09:18 +0000 (18:09 +0000)
committerRichard Maw <richard.maw@codethink.co.uk>
Wed, 13 Dec 2023 13:35:04 +0000 (13:35 +0000)
This test is for if devices transition from plugged -> dead -> plugged
on boot, but it is normal to see loop devices transition plugged -> dead
on first boot when systemd-repart adds the root partition.

test/units/testsuite-31.sh

index 03aba36ab83957962eeb9eacca584af42fe2b10b..5e99302299032fc266621ac7043bbf5579048d44 100755 (executable)
@@ -3,7 +3,7 @@
 set -eux
 set -o pipefail
 
-if journalctl -b -t systemd --grep '\.device: Changed plugged -> dead'; then
+if journalctl -b -t systemd --grep '(?<!loop.|diskseq-.)\.device: Changed plugged -> dead'; then
     exit 1
 fi