Skip to contentSkip to conversation

network/sit01.sh: Replace tst_res with tst_brk

PATCH New Zhao Gongyi 2 participants 3 messages Apr 29, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 network/sit01.sh: Replace tst_res with tst_brk

We need replace tst_res with tst_brk to terminate the test immediately since there is no sence to go on.

---
v2->v3: split into two separate commits

 testcases/network/virt/sit01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/network/virt/sit01.sh +1 -1
index 4ecc1f8c0..27fa0ee77 100755
@@ -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

#1 lore raw

PATCH v3 1/1 network/sit01.sh: Replace tst_res with tst_brk

Hi,

testcases/network/virt/sit01.sh virt_type="sit" · line 14

Quoted 8 lines

We need replace tst_res with tst_brk to terminate the test immediately since there is no sence to go on.

+++ b/testcases/network/virt/sit01.sh
do_setup()
{

testcases/network/virt/sit01.sh +1 -1
-	[ -n "$TST_IPV6" ] && tst_res TBROK "invalid option '-6' for sit tunnel"
+	[ -n "$TST_IPV6" ] && tst_brk TBROK "invalid option '-6' for sit tunnel"

Kind regards,
Petr

Applied
#2 lore raw

PATCH v3 1/1 network/sit01.sh: Replace tst_res with tst_brk

In reply to Zhao Gongyi

Hi,

testcases/network/virt/sit01.sh virt_type="sit" · line 14

Quoted 3 lines

+++ b/testcases/network/virt/sit01.sh

testcases/network/virt/sit01.sh +1 -1
-	[ -n "$TST_IPV6" ] && tst_res TBROK "invalid option '-6' for sit tunnel"
+	[ -n "$TST_IPV6" ] && tst_brk TBROK "invalid option '-6' for sit tunnel"

Merged, thanks!

Kind regards,
Petr