testsuite-17.11.sh: fix assert_1()

Fix assert_1() to exit with an error status in case of a failed assertion.
This commit is contained in:
Dmitry V. Levin 2023-05-18 12:00:00 +00:00
parent 8fb26ccd36
commit 75390455cb

View file

@ -60,10 +60,12 @@ assert_0() {
}
assert_1() {
local rc
set +e
udevadm verify "$@" >"${out}" 2>"${err}"
assert_eq "$?" 1
rc=$?
set -e
assert_eq "$rc" 1
if [ -f "${exp}" ]; then
diff -u "${exp}" "${err}"