time_.py: Expected a command Usage: time.py [options] ARGV... time_.py: error: --output option requires an argument hi 0,0.000581 hi 0,0.000623,a,b hi 0,0.000511,0.000500,0.000000,1928 hi 0,0.000523,0.000509,0.000000,1988,a,b 0 0.010589 0 0.020683 0 0.030654 hi 0 0.000532 a b hi 0 0.000506 0.000496 0.000000 1860 a b 0 0.050613 --- 0 0.040640 0 0.050664 Traceback (most recent call last): File "benchmarks/time_.py", line 189, in status = main(sys.argv) File "benchmarks/time_.py", line 174, in main table_out.writerow(more_cells) _csv.Error: need to escape, but no escapechar set Traceback (most recent call last): File "benchmarks/time_.py", line 189, in status = main(sys.argv) File "benchmarks/time_.py", line 174, in main table_out.writerow(more_cells) _csv.Error: need to escape, but no escapechar set Traceback (most recent call last): File "benchmarks/time_.py", line 189, in status = main(sys.argv) File "benchmarks/time_.py", line 174, in main table_out.writerow(more_cells) _csv.Error: need to escape, but no escapechar set 0 0.001568 OK test-bad-tsv-chars c0710d6b4f15dfa88f600b0e6b624077 _tmp/stdout.txt 0,0.000509,c0710d6b4f15dfa88f600b0e6b624077 0,0.000515,0.000503,0.000000,1992,c0710d6b4f15dfa88f600b0e6b624077 bash 0 0.001070 0.001058 0.000000 3304 python 0 0.012894 0.009651 0.003217 10876 /usr/bin/time 1 0 0.00 2180 1 0 0.000545 0.000000 0.000522 1996 time_.py: No arguments allowed with --print-header status elapsed_secs name status elapsed_secs user_secs sys_secs max_rss_KiB name status,elapsed_secs,user_secs,sys_secs,max_rss_KiB,foo,bar +head _tmp/time-test-1 status elapsed_secs user_secs sys_secs max_rss_KiB stdout_md5sum a b +test-time-helper +set +o errexit +local tmp=_tmp/time-helper.txt +local th=_devbuild/bin/time-helper +local 'cmd={ md5sum */*.md; sleep 0.15; exit 42; } > /dev/null' +echo 'will be overwritten' +cat _tmp/time-helper.txt will be overwritten +_devbuild/bin/time-helper time-helper: expected a command to run +assert 1 -ne 0 +test 1 -ne 0 +_devbuild/bin/time-helper /bad time-helper: error executing '/bad' execvp: No such file or directory +assert 1 -eq 1 +test 1 -eq 1 +_devbuild/bin/time-helper -o _tmp/time-helper.txt -d ' ' -x -e -- sh -c '{ md5sum */*.md; sleep 0.15; exit 42; } > /dev/null' +assert 42 -eq 42 +test 42 -eq 42 +cat _tmp/time-helper.txt 42 0.153562+echo +_devbuild/bin/time-helper -o _tmp/time-helper.txt -a -d , -x -e -U -S -M -- sh -c '{ md5sum */*.md; sleep 0.15; exit 42; } > /dev/null' +assert 42 -eq 42 +test 42 -eq 42 +cat _tmp/time-helper.txt 42 0.15356242,0.153543,0.002113,0.001366,2196+echo +_devbuild/bin/time-helper -z _devbuild/bin/time-helper: invalid option -- 'z' +assert 2 -eq 2 +test 2 -eq 2 +echo +echo 'All tests in benchmarks/time-test.sh passed.' All tests in benchmarks/time-test.sh passed.