All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2] tst_res: Replace tst_res with tst_brk for shell testcases
@ 2021-04-29  2:32 zhaogongyi
  0 siblings, 0 replies; 3+ messages in thread
From: zhaogongyi @ 2021-04-29  2:32 UTC (permalink / raw)
  To: ltp

Hi Petr,

Thanks for your review!

I have split the patch into two sparate commits, and Cc Alexey Kodanev.

Please see:
https://patchwork.ozlabs.org/project/ltp/patch/20210429022839.24503-1-zhaogongyi@huawei.com/
https://patchwork.ozlabs.org/project/ltp/patch/20210429020922.24085-1-zhaogongyi@huawei.com/


Best Regards,
Gongyi

> 
> Hi,
> 
> > 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
> Good catch. I'd split it into separate commits.
> For testcases/network please Cc also Alexey Kodanev.
> 
> Kind regards,
> Petr

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

* [LTP] [PATCH v2] tst_res: Replace tst_res with tst_brk for shell testcases
  2021-04-13 11:35 Zhao Gongyi
@ 2021-04-28 19:24 ` Petr Vorel
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-04-28 19:24 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.

> 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

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

* [LTP] [PATCH v2] tst_res: Replace tst_res with tst_brk for shell testcases
@ 2021-04-13 11:35 Zhao Gongyi
  2021-04-28 19:24 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Zhao Gongyi @ 2021-04-13 11:35 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.

For those:
	testcases/commands/lsmod/lsmod01.sh
        testcases/network/virt/sit01.sh

Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
---
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(-)

diff --git a/testcases/commands/lsmod/lsmod01.sh b/testcases/commands/lsmod/lsmod01.sh
index 2e044c718..44ca59b95 100755
--- a/testcases/commands/lsmod/lsmod01.sh
+++ b/testcases/commands/lsmod/lsmod01.sh
@@ -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
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

end of thread, other threads:[~2021-04-29  2:32 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:32 [LTP] [PATCH v2] tst_res: Replace tst_res with tst_brk for shell testcases zhaogongyi
  -- strict thread matches above, loose matches on Subject: below --
2021-04-13 11:35 Zhao Gongyi
2021-04-28 19:24 ` 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.