summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/tests
diff options
context:
space:
mode:
authorEyal Soha <eyalsoha@google.com>2020-04-23 13:11:23 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-23 13:18:59 -0700
commitcc5de905e628c5e9aca7e7a333d6dd9638719b6a (patch)
treee170dde00561cbd66eb0de53d14c7c6d8cf9bd76 /test/packetimpact/tests
parent2e8c35b506654172243ea46918d27c897fca568c (diff)
Fix test output so that filenames have the correct path.
Tested: Intentionally introduce an error and then run: blaze test --test_output=streamed //third_party/gvisor/test/packetimpact/tests:tcp_outside_the_window_linux_test PiperOrigin-RevId: 308114194
Diffstat (limited to 'test/packetimpact/tests')
-rwxr-xr-xtest/packetimpact/tests/test_runner.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/packetimpact/tests/test_runner.sh b/test/packetimpact/tests/test_runner.sh
index 46d63d5e5..e938de782 100755
--- a/test/packetimpact/tests/test_runner.sh
+++ b/test/packetimpact/tests/test_runner.sh
@@ -262,7 +262,10 @@ sleep 3
# Start a packetimpact test on the test bench. The packetimpact test sends and
# receives packets and also sends POSIX socket commands to the posix_server to
# be executed on the DUT.
-docker exec -t "${TESTBENCH}" \
+docker exec \
+ -e XML_OUTPUT_FILE="/test.xml" \
+ -e TEST_TARGET \
+ -t "${TESTBENCH}" \
/bin/bash -c "${DOCKER_TESTBENCH_BINARY} \
${EXTRA_TEST_ARGS[@]-} \
--posix_server_ip=${CTRL_NET_PREFIX}${DUT_NET_SUFFIX} \