Skip to content

Commit

Permalink
strip doesnt mutate string
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Dec 4, 2023
1 parent 02a5b7d commit bcd1de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/filter-artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
artifact_tests[artifact_name] += 1

with open(file_name) as file:
test_outcome = file.read()
test_outcome = file.read().strip()
# The file may end with a new line, so strip whitespace
print(f"{artifact_name}, {distro_name}: {test_outcome.strip()}")
print(f"{artifact_name}, {distro_name}: {test_outcome}")
if test_outcome == "success":
if artifact_name not in artifact_successes:
artifact_successes[artifact_name] = 1
Expand Down

0 comments on commit bcd1de9

Please sign in to comment.