]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-64: only look at plugged devices, not all of them
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2023 21:34:34 +0000 (22:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Jan 2024 12:47:57 +0000 (13:47 +0100)
test/units/testsuite-64.sh

index 65e5f6cd91f6bd9504f7974fe4dfd245e91cc36a..1123a1d33b1f22fc3e531595f7c92d5f92350fdb 100755 (executable)
@@ -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
 )}