Skip to content

Commit

Permalink
Fix more linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabonte-rh committed Aug 16, 2024
1 parent c0ca638 commit 948c0aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/interop/create_ci_badge.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def get_openshift_version():

for file in os.listdir(results_dir):
if file.startswith("test_") and file.endswith(".xml"):
with open(os.path.join(results_dir, file), "r") as result_file: # type: ignore
xml = JUnitXml.fromfile(result_file) # type: ignore
with open(os.path.join(results_dir, file), "r") as result_file: # type: ignore
xml = JUnitXml.fromfile(result_file) # type: ignore
for suite in xml:
for case in suite:
if case.result:
Expand All @@ -71,14 +71,14 @@ def get_openshift_version():
ci_badge["message"] = ci_badge["patternBranch"]

ci_badge_json_basename = (
os.environ.get("PATTERN_SHORTNAME") # type: ignore
os.environ.get("PATTERN_SHORTNAME") # type: ignore
+ "-"
+ os.environ.get("INFRA_PROVIDER")
+ "-"
+ versions[1]
+ "-stable-badge.json"
)
ci_badge_json_filename = os.path.join(results_dir, ci_badge_json_basename) # type: ignore
ci_badge_json_filename = os.path.join(results_dir, ci_badge_json_basename) # type: ignore
print(f"Creating CI badge file at: {ci_badge_json_filename}")

with open(ci_badge_json_filename, "w") as ci_badge_file:
Expand Down

0 comments on commit 948c0aa

Please sign in to comment.