Android: Skip build server for nocompile tests (reland)

Previously the build server would run the nocompile tests and then the
nocompile tests would fail since the original targets would instantly
succeed (after offloading the failing run to the build server).

Original CL: https://crrev.com/c/2727528

Fixed:
- Moved check for skip_build_server out of the _enable_errorprone block
  so that it is always marked used by GN.

Bug: None
Change-Id: Ic5a36ab3ee12f0e33b2d6983d973d8b4d6a6d987
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2733330
Reviewed-by: Peter Wen <wnwen@chromium.org>
Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#859565}
GitOrigin-RevId: 3a9c8365705542582b06362bb9427cfff087fa4c
diff --git a/errorprone_plugin/test/nocompile_gn/BUILD.gn b/errorprone_plugin/test/nocompile_gn/BUILD.gn
index a662f06..522509f 100644
--- a/errorprone_plugin/test/nocompile_gn/BUILD.gn
+++ b/errorprone_plugin/test/nocompile_gn/BUILD.gn
@@ -14,6 +14,7 @@
   sources = [ empty_java ]
   if (enable_android_nocompile_tests) {
     sources += no_redundant_field_init_check_int_test_nocompile_sources
+    skip_build_server = true
   }
 }
 
@@ -23,6 +24,7 @@
   sources = [ empty_java ]
   if (enable_android_nocompile_tests) {
     sources += test_class_name_check_test_nocompile_sources
+    skip_build_server = true
   }
   deps = [
     "//base:base_java_test_support",