diff options
author | Andrei Vagin <avagin@google.com> | 2019-05-14 16:00:53 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-14 16:01:50 -0700 |
commit | fff21b99e45136510a0148eada57ff28966dc27e (patch) | |
tree | 69f2b88108f61771573963c5dff35bf2d57c3dc5 /kokoro | |
parent | ec248daf29974c3c3f99f4c110059e2c4e50fbe0 (diff) |
kokoro: run tests with a default docker container runtime
We want to know that our environment set up properly
and docker tests pass with a native runtime.
PiperOrigin-RevId: 248229294
Change-Id: I06c221e5eeed6e01bdd1aa935333c57e8eadc498
Diffstat (limited to 'kokoro')
-rwxr-xr-x | kokoro/run_tests.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh index aa88b5cbf..9d630362e 100755 --- a/kokoro/run_tests.sh +++ b/kokoro/run_tests.sh @@ -142,10 +142,21 @@ EOF run_docker_tests() { cd ${WORKSPACE_DIR} + # Run tests with a default runtime (runc). + bazel test \ + "${BAZEL_BUILD_FLAGS[@]}" \ + --test_env=RUNSC_RUNTIME="" \ + --test_output=all \ + //runsc/test/image:image_test + # These names are used to exclude tests not supported in certain # configuration, e.g. save/restore not supported with hostnet. declare -a variations=("" "-kvm" "-hostnet" "-overlay") for v in "${variations[@]}"; do + # FIXME(b/132073574): we need to flush arp tables, otherwise tests fail with + # timeout. + sudo ip neigh show + sudo ip neigh flush dev docker0 # Run runsc tests with docker that are tagged manual. bazel test \ "${BAZEL_BUILD_FLAGS[@]}" \ |