Skip to content

Commit 276312a

Browse files
Ignore buildkite branch when not in a PR (#3180) (#3184)
(cherry picked from commit 96be7a2) Co-authored-by: Miguel Grinberg <[email protected]>
1 parent 0d1783f commit 276312a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_elasticsearch/test_server/test_rest_api_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def remove_implicit_resolver(cls, tag_to_remove):
502502
http = urllib3.PoolManager(retries=urllib3.Retry(total=10))
503503

504504
branch_candidates = []
505-
if "ES_YAML_TESTS_BRANCH" in os.environ:
505+
if "ES_YAML_TESTS_BRANCH" in os.environ and os.environ["ES_YAML_TESTS_BRANCH"]:
506506
branch_candidates.append(os.environ["ES_YAML_TESTS_BRANCH"])
507507
git_branch = subprocess.getoutput("git branch --show-current")
508508
if git_branch not in branch_candidates:

0 commit comments

Comments
 (0)