From 21e9cf7b95434c74ed7cbcead4a9e5b19e168f6e Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 12 May 2022 16:43:33 +1000 Subject: tests: Simplify explicit checks for command success A number of individual test cases use '*out' commands to check for success of specific commands they've issued. Now that the test harness is testing for success of all issued commands as a matter of course, we no longer need to do this. Signed-off-by: David Gibson --- test/icmp/passt_in_ns | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/icmp/passt_in_ns') diff --git a/test/icmp/passt_in_ns b/test/icmp/passt_in_ns index be5be29..38a9a4f 100644 --- a/test/icmp/passt_in_ns +++ b/test/icmp/passt_in_ns @@ -24,14 +24,10 @@ test ICMP echo: guest to ns nsout IFNAME_NS ip -j li sh | jq -rM '.[] | select(.link_type == "ether").ifname' ns ip addr add 192.0.2.1/32 dev __IFNAME_NS__ guest ping -c1 -w1 192.0.2.1 -gout RET echo $? ns ip addr del 192.0.2.1/32 dev __IFNAME_NS__ -check [ __RET__ -eq 0 ] test ICMPv6 echo: guest to ns ns ip addr add 2001:db8::1 dev __IFNAME_NS__ && sleep 2 # DAD gout IFNAME ip -j li sh | jq -rM '.[] | select(.link_type == "ether").ifname' guest ping -c1 -w1 2001:db8::1 -gout RET echo $? ns ip addr del 2001:db8::1 dev __IFNAME_NS__ -check [ __RET__ -eq 0 ] -- cgit v1.2.3