Fix query (#1623)
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 636b994..63ab7ee 100755
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -2163,7 +2163,7 @@
def FormatTargetList(targets):
return " ".join("'{}'".format(t) for t in targets)
- query = "let t = tests(set({})) in \\$t".format(FormatTargetList(included_targets))
+ query = "let t = tests(set({})) in $t".format(FormatTargetList(included_targets))
if excluded_targets:
query += " except tests(set({}))".format(FormatTargetList(excluded_targets))
@@ -2171,10 +2171,10 @@
included_tags, excluded_tags = get_test_tags(test_flags)
for t in excluded_tags:
- query += " except attr('tags', '\\b{}\\b', \\$t)".format(t)
+ query += " except attr('tags', '\\b{}\\b', $t)".format(t)
if included_tags:
- parts = ["attr('tags', '\\b{}\\b', \\$tt)".format(t) for t in included_tags]
+ parts = ["attr('tags', '\\b{}\\b', $tt)".format(t) for t in included_tags]
query = "let tt = {} in {}".format(query, " union ".join(parts))
return query