tst_res: Replace tst_res with tst_brk for shell testcases
PATCH v2 1/1 tst_res: Replace tst_res with tst_brk for shell testcases
We need replace tst_res with tst_brk to terminate the test immediately since there is no sence to go on.
For those:
testcases/commands/lsmod/lsmod01.sh
testcases/network/virt/sit01.sh
Signed-off-by Zhao Gongyi <[email protected]>
---
v1->v2:remove the modification of ima_measurements.sh
--- testcases/commands/lsmod/lsmod01.sh | 3 +-- testcases/network/virt/sit01.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
testcases/commands/lsmod/lsmod01.sh +1 -2
@@ -23,8 +23,7 @@ setup() tst_require_cmds insmod insmod "$TST_MODPATH" if [ $? -ne 0 ]; then - tst_res TBROK "insmod failed" - return + tst_brk TBROK "insmod failed" fi module_inserted=1
testcases/network/virt/sit01.sh +1 -1
@@ -11,7 +11,7 @@ virt_type="sit" do_setup() { - [ -n "$TST_IPV6" ] && tst_res TBROK "invalid option '-6' for sit tunnel" + [ -n "$TST_IPV6" ] && tst_brk TBROK "invalid option '-6' for sit tunnel" virt_lib_setup
--
2.17.1
PATCH v2 1/1 tst_res: Replace tst_res with tst_brk for shell testcases
Hi,
Quoted 6 lines
We need replace
tst_reswithtst_brkto terminate the test immediately since there is no sence to go on.For those:
testcases/commands/lsmod/lsmod01.sh
testcases/network/virt/sit01.sh
Good catch. I'd split it into separate commits. For testcases/network please Cc also Alexey Kodanev.
Kind regards,
Petr