Commit b6b104b
committed
scsi/011: allow "set -e" in run_test
The test case has the function run_test() which enables bash errexit
feature in it, so that command failures can be caught easily. However,
this errexit feature is not working because the call to run_test() is
followed by '||' operator. (ref: "set -e" description in man bash)
To enable the bash errexit feature in the call to run_test(), do not use
the '||' operator. Instead, check the exit value of the run_test() using
the special parameter '$?'. This triggers the shellcheck warning SC2181
then suppress it.
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent 2341aa0 commit b6b104b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments