test: capture ping output into a file
authorAndy Zhou <azhou@nicira.com>
Thu, 5 Feb 2015 23:36:01 +0000 (15:36 -0800)
committerAndy Zhou <azhou@nicira.com>
Fri, 6 Feb 2015 23:28:34 +0000 (15:28 -0800)
The ping output can be useful. There is no down side in saving it.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Joe Stringer <joestringer@nicira.com>
tests/kmod-traffic.at

index ddb2cb2..bcc4c17 100644 (file)
@@ -10,7 +10,8 @@ ON_EXIT(DEL_NAMESPACES(at_ns0, at_ns1))
 ADD_VETH(p0, at_ns0, br0, "10.1.1.1/24")
 ADD_VETH(p1, at_ns1, br0, "10.1.1.2/24")
 
-AT_CHECK([ip netns exec at_ns0 bash -c "ping -q -c 3 -i 0.3 -w 2 10.1.1.2 >/dev/null"])
+AT_CAPTURE_FILE([ping.output])
+AT_CHECK([ip netns exec at_ns0 bash -c "ping -q -c 3 -i 0.3 -w 2 10.1.1.2 > ping.output"])
 
 OVS_KMOD_VSWITCHD_STOP([], DEL_NAMESPACES(at_ns0, at_ns1))
 AT_CLEANUP