From: Frantisek Sumsal Date: Tue, 27 Sep 2022 11:06:27 +0000 (+0200) Subject: test: ignore tty* devices when checking device units X-Git-Tag: v252-rc1~82^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6ef4ebbdac56cb600b6f0f16365fc66c0f1dff0;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh index 505e949c094..58f96ecce8f 100755 --- a/test/units/testsuite-64.sh +++ b/test/units/testsuite-64.sh @@ -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 )}