diff options
author | 2015-09-08 16:57:53 +0000 | |
---|---|---|
committer | 2015-09-08 17:26:47 +0000 | |
commit | fcf34fd17b16b42ed1180b6961b8531f26f82cf2 (patch) | |
tree | 64751818871215b352cc28536651ea1081d4fe9c /src/test/java/com/google/devtools/build/lib/testutil/TestSpec.java | |
parent | 3fd49d60855807501ccf544f4a31b974d28aaf53 (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.java | 6 |
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; } |