mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
test: ignore tty* devices when checking device units
This lower the runtime of `check_device_units()` in a plain QEMU VM from ~45 seconds to ~25 seconds.
This commit is contained in:
parent
dd2b99ee7f
commit
d6ef4ebbda
@ -149,7 +149,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 '{ print $1 }' | sed -e 's/\.device$//')
|
||||
done < <(systemctl list-units --all --type=device --no-legend dev-* | awk '$1 !~ /dev-tty.+/ { print $1 }' | sed -e 's/\.device$//')
|
||||
|
||||
return 0
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user