All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk
@ 2021-04-29  2:28 Zhao Gongyi
  2021-04-29  6:56 ` Petr Vorel
  2021-04-29 17:12 ` Petr Vorel
  0 siblings, 2 replies; 3+ messages in thread
From: Zhao Gongyi @ 2021-04-29  2:28 UTC (permalink / raw)
  To: ltp

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

Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
---
v2->v3: split into two separate commits
 testcases/network/virt/sit01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/network/virt/sit01.sh b/testcases/network/virt/sit01.sh
index 4ecc1f8c0..27fa0ee77 100755
--- a/testcases/network/virt/sit01.sh
+++ b/testcases/network/virt/sit01.sh
@@ -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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk
  2021-04-29  2:28 [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk Zhao Gongyi
@ 2021-04-29  6:56 ` Petr Vorel
  2021-04-29 17:12 ` Petr Vorel
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-04-29  6:56 UTC (permalink / raw)
  To: ltp

Hi,

> 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()
>  {
> -	[ -n "$TST_IPV6" ] && tst_res TBROK "invalid option '-6' for sit tunnel"
> +	[ -n "$TST_IPV6" ] && tst_brk TBROK "invalid option '-6' for sit tunnel"

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk
  2021-04-29  2:28 [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk Zhao Gongyi
  2021-04-29  6:56 ` Petr Vorel
@ 2021-04-29 17:12 ` Petr Vorel
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-04-29 17:12 UTC (permalink / raw)
  To: ltp

Hi,

> +++ b/testcases/network/virt/sit01.sh
> -	[ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-29 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29  2:28 [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk Zhao Gongyi
2021-04-29  6:56 ` Petr Vorel
2021-04-29 17:12 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.