aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2015-09-08 16:57:53 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-08 17:26:47 +0000
commitfcf34fd17b16b42ed1180b6961b8531f26f82cf2 (patch)
tree64751818871215b352cc28536651ea1081d4fe9c /src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java
parent3fd49d60855807501ccf544f4a31b974d28aaf53 (diff)
Add a localOnly attribute to TestSpec to make it easier to split tests into parts that can run via remote execution and those that can only run on the local machine (e.g. due to needing extended permissione).
-- MOS_MIGRATED_REVID=102565161
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java b/src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java
index 0d793f7145..71479048da 100644
--- a/src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java
+++ b/src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java
@@ -45,4 +45,10 @@ public @interface TestSpec {
* code's correctness. If this is the case, the test should be fixed as soon as possible.
*/
boolean flaky() default false;
+
+ /**
+ * True, if the test cannot run in a remote execution environment and has to run on the local
+ * machine.
+ */
+ boolean localOnly() default false;
}