Skip to content

Commit

Permalink
address a self-review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Oct 7, 2024
1 parent 290ffb0 commit 2157fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perfmetrics/scripts/testing_on_gke/examples/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def run_command(command: str) -> int:
Returns exit-code which would be non-zero for error.
"""
result = subprocess.run(
[word for word in command.split(" ") if (word and not str.isspace(word))],
[word for word in command.split(" ") if (word and word.strip())],
capture_output=True,
text=True,
)
Expand Down

0 comments on commit 2157fae

Please sign in to comment.