From 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 8 Jan 2020 14:59:53 -0500 Subject: feat(flags): script arguments come after '--' (#3621) --- tools/throughput_benchmark.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/throughput_benchmark.py') diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py index f46503193..4e285a7b8 100755 --- a/tools/throughput_benchmark.py +++ b/tools/throughput_benchmark.py @@ -21,7 +21,7 @@ def cat(deno_exe, megs): size = megs * MB start = time.time() cmd = deno_exe + " run --allow-read " - cmd += "tests/cat.ts /dev/zero | head -c %s " % size + cmd += "tests/cat.ts -- /dev/zero | head -c %s " % size print cmd subprocess.check_output(cmd, shell=True) end = time.time() @@ -32,7 +32,8 @@ def tcp(deno_exe, megs): size = megs * MB # Run deno echo server in the background. args = [ - deno_exe, "run", "--allow-net", "tests/echo_server.ts", SERVER_ADDR + deno_exe, "run", "--allow-net", "tests/echo_server.ts", "--", + SERVER_ADDR ] print args echo_server = subprocess.Popen(args) -- cgit v1.2.3