mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
test-64: only look at plugged devices, not all of them
This commit is contained in:
parent
04d4086c22
commit
6018a27cb7
@ -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
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user