Add @UseSsh Annotation and GERRIT_USE_SSH flag

Adding a @UseSsh annotation and a command line flag lets us decide if we
want to run tests that require SSH on each test run. In this way, we can
run the test suite against a Gerrit instance that does not support SSH
connections.

Change-Id: Ibb471f312c50f0c92e1c32e55f4a5667b33b6ab5
This commit is contained in:
Patrick Hiesel
2016-12-22 11:40:23 +01:00
parent e3db98f674
commit 244ff8c375
16 changed files with 157 additions and 16 deletions

View File

@@ -217,6 +217,12 @@ To run the tests against NoteDb backend:
bazel test --test_env=GERRIT_NOTEDB=READ_WRITE //...
----
To run only tests that do not use SSH:
----
bazel test --test_env=GERRIT_USE_SSH=NO //...
----
== Dependencies
Dependency JARs are normally downloaded as needed, but you can