Do not cache Bazel test results
When executing Gerrit builds, we run the tests twice:
- reviewdb mode
- notedb mode
We need to make sure to run *all the tests* again when
checking notedb, otherwise the tests will succeeded without
having been even invoked.
Change-Id: I649b8110c60cefd8b2611f6baa18ce5ad3535ea7
diff --git a/jenkins/gerrit-bazel-test.sh b/jenkins/gerrit-bazel-test.sh
index 54255f9..1f97116 100644
--- a/jenkins/gerrit-bazel-test.sh
+++ b/jenkins/gerrit-bazel-test.sh
@@ -7,7 +7,7 @@
export BAZEL_OPTS="--ignore_unsupported_sandboxing --test_output errors \
--test_summary detailed --flaky_test_attempts 3 \
--test_verbose_timeout_warnings --build_tests_only \
- --local_test_jobs 1"
+ --local_test_jobs 1 --nocache_test_results"
echo 'Test in default DB mode'
echo '----------------------------------------------'
diff --git a/jenkins/gerrit-bazel-verifier-test.sh b/jenkins/gerrit-bazel-verifier-test.sh
index cb3677f..4a962bd 100644
--- a/jenkins/gerrit-bazel-verifier-test.sh
+++ b/jenkins/gerrit-bazel-verifier-test.sh
@@ -20,7 +20,7 @@
--ignore_unsupported_sandboxing --test_output errors \
--test_summary detailed --flaky_test_attempts 3 \
--test_verbose_timeout_warnings --build_tests_only \
- --local_test_jobs 1 //...
+ --local_test_jobs 1 --nocache_test_results //...
fi
if [ "$MODE" == "polygerrit" ]