summaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests.sh
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-06-11 16:35:42 -0700
committerShentubot <shentubot@google.com>2019-06-11 16:36:53 -0700
commit69c8657a66ac1a7e3bfd388de0a7cd28ac4b51cd (patch)
tree31f7c5831cf71dc527a7a09541e3862caaa97de7 /tools/run_tests.sh
parent478a0873e1dfece108703532fa0850ea39487d51 (diff)
kokoro: don't overwrite test results for different runtimes
PiperOrigin-RevId: 252724255
Diffstat (limited to 'tools/run_tests.sh')
-rwxr-xr-xtools/run_tests.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/run_tests.sh b/tools/run_tests.sh
index b35d2e4b8..8874794fd 100755
--- a/tools/run_tests.sh
+++ b/tools/run_tests.sh
@@ -175,13 +175,17 @@ run_docker_tests() {
# configuration, e.g. save/restore not supported with hostnet.
declare -a variations=("" "-kvm" "-hostnet" "-overlay")
for v in "${variations[@]}"; do
+ # Change test names otherwise each run of tests will overwrite logs and
+ # results of the previous run.
+ sed -i "s/name = \"integration_test.*\"/name = \"integration_test${v}\"/" runsc/test/integration/BUILD
+ sed -i "s/name = \"image_test.*\"/name = \"image_test${v}\"/" runsc/test/image/BUILD
# Run runsc tests with docker that are tagged manual.
bazel test \
"${BAZEL_BUILD_FLAGS[@]}" \
--test_env=RUNSC_RUNTIME="${RUNTIME}${v}" \
--test_output=all \
- //runsc/test/image:image_test \
- //runsc/test/integration:integration_test
+ //runsc/test/image:image_test${v} \
+ //runsc/test/integration:integration_test${v}
done
}