Always explicitly pass GERRIT_NOTEDB to tests

This will allow us to change the default while keeping CI behavior the
same.

Change-Id: I13e748292709a59c44d1a36f7974f5cb2fa87f0f
diff --git a/jenkins/gerrit-bazel-test.sh b/jenkins/gerrit-bazel-test.sh
index a881a92..4f6f337 100755
--- a/jenkins/gerrit-bazel-test.sh
+++ b/jenkins/gerrit-bazel-test.sh
@@ -12,7 +12,7 @@
 
 echo 'Test in ReviewDb mode'
 echo '----------------------------------------------'
-bazel test $BAZEL_OPTS //...
+bazel test --test_env=GERRIT_NOTEDB=OFF $BAZEL_OPTS //...
 
 if [ "{branch}" == "master" ] || [ "{branch}" == "stable-2.16" ] || [ "{branch}" == "stable-2.15" ]
 then
diff --git a/jenkins/gerrit-bazel-verifier-test.sh b/jenkins/gerrit-bazel-verifier-test.sh
index 8852216..523de91 100755
--- a/jenkins/gerrit-bazel-verifier-test.sh
+++ b/jenkins/gerrit-bazel-verifier-test.sh
@@ -16,6 +16,7 @@
 
 if [[ "$MODE" == *"reviewdb"* ]]
 then
+  GERRIT_NOTEDB="--test_env=GERRIT_NOTEDB=OFF"
   bazel test $BAZEL_OPTS //...
 fi