diff options
Diffstat (limited to 'kokoro')
-rwxr-xr-x | kokoro/gcp_ubuntu/run_tests.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kokoro/gcp_ubuntu/run_tests.sh b/kokoro/gcp_ubuntu/run_tests.sh index 5554350da..978a21599 100755 --- a/kokoro/gcp_ubuntu/run_tests.sh +++ b/kokoro/gcp_ubuntu/run_tests.sh @@ -44,12 +44,15 @@ bazel test --test_output=errors //... exit_code=${?} if [[ ${exit_code} -eq 0 ]]; then - # image_test is tagged manual - bazel test --test_output=errors --test_env=RUNSC_RUNTIME=${runtime} //runsc/test/image:image_test - bazel test --test_output=errors --test_env=RUNSC_RUNTIME=${runtime}-kvm //runsc/test/image:image_test - bazel test --test_output=errors --test_env=RUNSC_RUNTIME=${runtime}-nethost //runsc/test/image:image_test - bazel test --test_output=errors --test_env=RUNSC_RUNTIME=${runtime}-overlay //runsc/test/image:image_test - exit_code=${?} + declare -a variations=("" "-kvm" "-hostnet" "-overlay") + for v in "${variations[@]}"; do + # image_test is tagged manual + bazel test --test_output=errors --test_env=RUNSC_RUNTIME=${runtime}${v} //runsc/test/image:image_test + exit_code=${?} + if [[ ${exit_code} -ne 0 ]]; then + break + fi + done fi # Best effort to uninstall |