From: Yu Watanabe Date: Sat, 28 Jun 2025 01:39:32 +0000 (+0900) Subject: TEST-17-UDEV: check the exit code at last X-Git-Tag: v258-rc1~222^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F37997%2Fhead;p=thirdparty%2Fsystemd.git TEST-17-UDEV: check the exit code at last Otherwise, it is hard to debug when the test failed. --- 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() {