mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
TEST-17-UDEV: check the exit code at last
Otherwise, it is hard to debug when the test failed.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user