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:
Frantisek Sumsal
2022-09-27 15:10:18 +02:00
parent dd2b99ee7f
commit d6ef4ebbda
+1 -1
View File
@@ -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
)}