From: Lennart Poettering Date: Wed, 29 Nov 2023 21:34:34 +0000 (+0100) Subject: test-64: only look at plugged devices, not all of them X-Git-Tag: v256-rc1~1330^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6018a27cb72d631ec70903fa37e8adfa30f86e66;p=thirdparty%2Fsystemd.git test-64: only look at plugged devices, not all of them --- diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh index 65e5f6cd91f..1123a1d33b1 100755 --- a/test/units/testsuite-64.sh +++ b/test/units/testsuite-64.sh @@ -148,7 +148,7 @@ check_device_units() {( if ! check_device_unit "$log_level" "$path"; then return 1 fi - done < <(systemctl list-units --all --type=device --no-legend dev-* | awk '$1 !~ /dev-tty.+/ { print $1 }' | sed -e 's/\.device$//') + done < <(systemctl list-units --all --type=device --no-legend dev-* | awk '$1 !~ /dev-tty.+/ && $4 == "plugged" { print $1 }' | sed -e 's/\.device$//') return 0 )}