File tree Expand file tree Collapse file tree
cuda_bindings/benchmarks/runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def strip_output_args(argv: list[str]) -> list[str]:
4343 if arg in ("-o" , "--output" ):
4444 skip_next = True
4545 continue
46- if arg .startswith ("-o=" ) or arg . startswith ( "--output=" ):
46+ if arg .startswith (( "-o=" , "--output=" ) ):
4747 continue
4848 cleaned .append (arg )
4949 return cleaned
@@ -161,7 +161,7 @@ def main() -> None:
161161 binary = registry [name ]
162162 tmp_json = tmpdir_path / f"{ name } .json"
163163 cmd = [str (binary ), "-o" , str (tmp_json ), * passthrough_argv ]
164- result = subprocess .run (cmd )
164+ result = subprocess .run (cmd , check = False ) # noqa: S603
165165 if result .returncode != 0 :
166166 print (f"FAILED: { name } (exit code { result .returncode } )" , file = sys .stderr )
167167 failed = True
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def strip_pyperf_output_args(argv: list[str]) -> list[str]:
6666 if arg in ("-o" , "--output" , "--append" ):
6767 skip_next = True
6868 continue
69- if arg .startswith ("-o=" ) or arg . startswith ( "--output=" ) or arg . startswith ( "--append=" ):
69+ if arg .startswith (( "-o=" , "--output=" , "--append=" ) ):
7070 continue
7171 cleaned .append (arg )
7272 return cleaned
You can’t perform that action at this time.
0 commit comments