Skip to content

Commit ed6d661

Browse files
committed
Various changes to benchmarks.py to improve compatibility with CI's python
1 parent bf58377 commit ed6d661

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def action_run(args):
202202
# macOS version of 'swift test' outputs to stderr instead of stdout.
203203
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
204204

205-
swift_ver = subprocess.run(swift_command + ["--version"], capture_output=True, check=True,
205+
swift_ver = subprocess.run(swift_command + ["--version"], stdout=subprocess.PIPE, check=True,
206206
universal_newlines=True).stdout
207207
run = BenchmarkRun(swift_ver)
208208

@@ -247,7 +247,7 @@ def action_show(args):
247247
print(o)
248248

249249
parser = argparse.ArgumentParser(description="A benchmarking tool for BitByteData")
250-
subparsers = parser.add_subparsers(title="commands", help="a command to perform", required=True, metavar="CMD")
250+
subparsers = parser.add_subparsers(title="commands", help="a command to perform", metavar="CMD")
251251

252252
# Parser for 'run' command.
253253
parser_run = subparsers.add_parser("run", help="run benchmarks", description="run benchmarks")

0 commit comments

Comments
 (0)