All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v1] lib/tst_test.sh: skip test if ip returns "Error: Unknown device type"
@ 2021-07-22  6:34 Radoslav Kolev
  2021-07-22  7:49 ` Petr Vorel
  0 siblings, 1 reply; 12+ messages in thread
From: Radoslav Kolev @ 2021-07-22  6:34 UTC (permalink / raw)
  To: ltp

In network stress test groups there are tests expecting
CONFIG_NET_IPVTI to be enabled in the kernel, and if it's not they
fail. There is a check for VTI support in the ip utility, but not
for the kernel. Skip these tests if vti device type is not known by
the kernel.

Signed-off-by: Radoslav Kolev <radoslav.kolev@suse.com>
---
 testcases/lib/tst_test.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index c6aa2c487..0458c90c2 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -241,12 +241,13 @@ TST_RTNL_CHK()
 	local msg1="RTNETLINK answers: Function not implemented"
 	local msg2="RTNETLINK answers: Operation not supported"
 	local msg3="RTNETLINK answers: Protocol not supported"
+	local msg4="Error: Unknown device type"
 	local output="$($@ 2>&1 || echo 'LTP_ERR')"
 	local msg
 
 	echo "$output" | grep -q "LTP_ERR" || return 0
 
-	for msg in "$msg1" "$msg2" "$msg3"; do
+	for msg in "$msg1" "$msg2" "$msg3" "$msg4"; do
 		echo "$output" | grep -q "$msg" && tst_brk TCONF "'$@': $msg"
 	done
 
-- 
2.26.2


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

end of thread, other threads:[~2021-07-30  9:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22  6:34 [LTP] [PATCH v1] lib/tst_test.sh: skip test if ip returns "Error: Unknown device type" Radoslav Kolev
2021-07-22  7:49 ` Petr Vorel
2021-07-27  8:20   ` Radoslav Kolev
2021-07-27  8:44     ` Alexey Kodanev
2021-07-27 10:02       ` Petr Vorel
2021-07-28 11:38         ` Alexey Kodanev
2021-07-28 13:06           ` Petr Vorel
2021-07-28 14:00             ` Radoslav Kolev
2021-07-28 14:04             ` [LTP] [PATCH v2] ipsec_lib.sh: check ip_vti/ip6_vti are enabled or skip tests Radoslav Kolev
2021-07-30  7:08               ` Petr Vorel
2021-07-30  7:50                 ` Alexey Kodanev
2021-07-30  9:45                   ` 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.