Fix bad test in tag check. (#738)
All checks were successful
Lint Checks / Run linter (push) Successful in 42s
Publish / Build and publish (push) Successful in 1m11s
Deploy Test / Run deploy test suite (push) Successful in 4m40s
Webapp Test / Run webapp test suite (push) Successful in 3m31s
Smoke Test / Run basic test suite (push) Successful in 5m30s
All checks were successful
Lint Checks / Run linter (push) Successful in 42s
Publish / Build and publish (push) Successful in 1m11s
Deploy Test / Run deploy test suite (push) Successful in 4m40s
Webapp Test / Run webapp test suite (push) Successful in 3m31s
Smoke Test / Run basic test suite (push) Successful in 5m30s
Reviewed-on: #738 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
This commit is contained in:
parent
2104eb5f30
commit
72ed2eb91a
@ -355,11 +355,13 @@ def generate_hostname_for_app(app):
|
|||||||
|
|
||||||
def skip_by_tag(r, include_tags, exclude_tags):
|
def skip_by_tag(r, include_tags, exclude_tags):
|
||||||
for tag in exclude_tags:
|
for tag in exclude_tags:
|
||||||
if tag and r.attributes.tags and tag in r.attributes.tags:
|
if r.attributes.tags and tag in r.attributes.tags:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
for tag in include_tags:
|
if include_tags:
|
||||||
if tag and (not r.attributes.tags or tag not in r.attributes.tags):
|
for tag in include_tags:
|
||||||
return True
|
if r.attributes.tags and tag in r.attributes.tags:
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user