The tests are run with `set -e`. So the test will exit in case of a
failure and `$?` will always be `0`. So drop the check for `$?`.
-append "$TEST_KERNEL_CMDLINE $cmdline ro" \
-initrd "$TESTDIR"/initramfs.testing
- # shellcheck disable=SC2181
- if [[ $? -ne 0 ]] || ! test_marker_check nfs-OK; then
- echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
+ if ! test_marker_check nfs-OK; then
+ echo "CLIENT TEST END: $test_name [FAILED - MISSING MARKER]"
return 1
fi
-append "$TEST_KERNEL_CMDLINE $*" \
-initrd "$TESTDIR"/initramfs.testing
- # shellcheck disable=SC2181
- if [[ $? -ne 0 ]] || ! test_marker_check iscsi-OK; then
- echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
+ if ! test_marker_check iscsi-OK; then
+ echo "CLIENT TEST END: $test_name [FAILED - MISSING MARKER]"
return 1
fi
-append "$cmdline rd.auto ro" \
-initrd "$TESTDIR"/initramfs.testing
- # shellcheck disable=SC2181
- if [[ $? -ne 0 ]] || ! test_marker_check nbd-OK; then
- echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
+ if ! test_marker_check nbd-OK; then
+ echo "CLIENT TEST END: $test_name [FAILED - MISSING MARKER]"
return 1
fi