time_.py: Expected a command Usage: time.py [options] ARGV... time_.py: error: --output option requires an argument hi 0,0.000624 hi 0,0.000531,a,b hi 0,0.000559,0.000549,0.000000,1976 hi 0,0.000532,0.000520,0.000000,2012,a,b 0 0.010623 0 0.020647 0 0.030684 hi 0 0.000549 a b hi 0 0.000560 0.000554 0.000000 1972 a b 0 0.050624 --- 0 0.040626 0 0.050666 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.001590 OK test-bad-tsv-chars c0710d6b4f15dfa88f600b0e6b624077 _tmp/stdout.txt 0,0.000520,c0710d6b4f15dfa88f600b0e6b624077 0,0.000484,0.000473,0.000000,2064,c0710d6b4f15dfa88f600b0e6b624077 bash 0 0.001016 0.000975 0.000000 3172 python 0 0.012790 0.009551 0.003183 10820 /usr/bin/time 1 0 0.00 1948 1 0 0.000495 0.000481 0.000000 2072 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.153454+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.15345442,0.153606,0.003531,0.000000,2104+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.