Skip to content

Commit

Permalink
fixing if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bacciotti committed Oct 30, 2024
1 parent 4163de3 commit 0592de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/bin/deploy-iqe-cji.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def run(self) -> None:
print("PR labeled to skip smoke tests")
return

if "smokes-required" not in self.pr_labels and not any(label.endswith("-smoke-tests") for label in self.pr_labels):
if "smokes-required" in self.pr_labels and not any(label.endswith("-smoke-tests") for label in self.pr_labels):
sys.exit("Missing smoke tests labels.")

self.run_pod()
Expand Down
3 changes: 2 additions & 1 deletion files/bin/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ def main() -> None:
labels = get_pr_labels(pr_number)
cred_params = []


if "koku" in components:
if "smokes-required" not in labels and not any(label.endswith("-smoke-tests") for label in labels):
if "smokes-required" in labels and not any(label.endswith("-smoke-tests") for label in labels):
sys.exit("Missing smoke tests labels.")

# Credentials
Expand Down

0 comments on commit 0592de5

Please sign in to comment.