mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix ansible-test base branch handling on merge. (#22759)
This commit is contained in:
parent
93d9b04f1d
commit
991bf0a1c3
1 changed files with 4 additions and 1 deletions
|
@ -1136,9 +1136,12 @@ class SanityConfig(TestConfig):
|
||||||
self.base_branch = args.base_branch # str
|
self.base_branch = args.base_branch # str
|
||||||
elif is_shippable():
|
elif is_shippable():
|
||||||
try:
|
try:
|
||||||
self.base_branch = 'origin/%s' % os.environ['BASE_BRANCH'] # str
|
self.base_branch = os.environ['BASE_BRANCH'] # str
|
||||||
except KeyError as ex:
|
except KeyError as ex:
|
||||||
raise MissingEnvironmentVariable(name=ex.args[0])
|
raise MissingEnvironmentVariable(name=ex.args[0])
|
||||||
|
|
||||||
|
if self.base_branch:
|
||||||
|
self.base_branch = 'origin/%s' % self.base_branch
|
||||||
else:
|
else:
|
||||||
self.base_branch = ''
|
self.base_branch = ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue