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
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 0d793f7..7147904 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 @@
    * 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;
 }