diff options
author | Andy Zhou <azhou@nicira.com> | 2015-02-05 15:36:01 -0800 |
---|---|---|
committer | Andy Zhou <azhou@nicira.com> | 2015-02-06 15:28:34 -0800 |
commit | 128f4e3f14171cacd227c1389e034a6db0cc9363 (patch) | |
tree | ac4719ede8a3346c564b9fbbe8870dd163cfcbc6 /tests | |
parent | 75e7f85974b3e480463e8883946486c11159f7ab (diff) | |
download | openvswitch-128f4e3f14171cacd227c1389e034a6db0cc9363.tar.gz |
test: capture ping output into a file
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kmod-traffic.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kmod-traffic.at b/tests/kmod-traffic.at index ddb2cb254..bcc4c1701 100644 --- a/tests/kmod-traffic.at +++ b/tests/kmod-traffic.at @@ -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 |