From bb60dd27a6ca2134f5afd996d4a072a73718e635 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 28 Jun 2025 10:39:32 +0900 Subject: [PATCH] TEST-17-UDEV: check the exit code at last Otherwise, it is hard to debug when the test failed. --- test/units/TEST-17-UDEV.verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/TEST-17-UDEV.verify.sh b/test/units/TEST-17-UDEV.verify.sh index f9ec6612b44..243fc00f550 100755 --- a/test/units/TEST-17-UDEV.verify.sh +++ b/test/units/TEST-17-UDEV.verify.sh @@ -76,7 +76,6 @@ assert_1_impl() { udevadm verify "$@" >"${out}" 2>"${err}" rc=$? set -e - assert_eq "$rc" 1 if [ -f "${exp}" ]; then diff -u "${exp}" "${err}" @@ -87,6 +86,7 @@ assert_1_impl() { elif [ -f "${rules}" ]; then diff -u "${workdir}/default_output_1_fail" "${out}" fi + assert_eq "$rc" 1 } assert_1() { -- 2.47.3