Skip to content

Commit 755c8f9

Browse files
Ignore buildkite branch when not in a PR (#3180) (#3183)
(cherry picked from commit 96be7a2) Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
1 parent 263007d commit 755c8f9

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
@@ -500,7 +500,7 @@ def remove_implicit_resolver(cls, tag_to_remove):
500500
http = urllib3.PoolManager(retries=urllib3.Retry(total=10))
501501

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

0 commit comments

Comments
 (0)