Skip to content

Commit 4c2ab02

Browse files
committed
[bazel] Mark tests as "exclusive-if-local"
Marking tests `exclusive` will mean that they will attempt to run locally, because Bazel has no other way of controlling which test is being run otherwise. Fortunately, we break each test class out into its own `java_test` rule so changing the tag used is fine.
1 parent c01587a commit 4c2ab02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

java/private/selenium_test.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BROWSERS = {
4242
"@selenium//conditions:default": ["-Dselenium.skiptest=true"],
4343
}),
4444
"data": [],
45-
"tags": COMMON_TAGS + ["exclusive", "ie"],
45+
"tags": COMMON_TAGS + ["exclusive-if-local", "ie"],
4646
},
4747
"safari": {
4848
"deps": ["//java/src/org/openqa/selenium/safari"],
@@ -52,7 +52,7 @@ BROWSERS = {
5252
"@selenium//conditions:default": ["-Dselenium.skiptest=true"],
5353
}),
5454
"data": [],
55-
"tags": COMMON_TAGS + ["exclusive", "safari"],
55+
"tags": COMMON_TAGS + ["exclusive-if-local", "safari"],
5656
},
5757
}
5858

py/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ py_test_suite(
491491
"--driver=safari",
492492
],
493493
tags = [
494-
"exclusive",
494+
"exclusive-if-local",
495495
"no-sandbox",
496496
],
497497
deps = [
@@ -515,7 +515,7 @@ py_test_suite(
515515
"--browser-args=--automation",
516516
],
517517
tags = [
518-
"exclusive",
518+
"exclusive-if-local",
519519
"no-sandbox",
520520
],
521521
deps = [
@@ -539,7 +539,7 @@ py_test_suite(
539539
"--browser-args=--automation --headless",
540540
],
541541
tags = [
542-
"exclusive",
542+
"exclusive-if-local",
543543
"no-sandbox",
544544
],
545545
deps = [

rust/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ rust_test(
4040
data = [":selenium-manager"],
4141
edition = "2021",
4242
tags = [
43-
"exclusive",
43+
"exclusive-if-local",
4444
"no-sandbox",
4545
"requires-network",
4646
],

0 commit comments

Comments
 (0)