From 541768052800ab7fd6c1ace59c974b8ea5def656 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 28 Feb 2013 10:47:22 -0800 Subject: [PATCH] bench.sh: log more information We want the whole timing information and git-log info in our log files. --- bench.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench.sh b/bench.sh index 71fff65..9044402 100755 --- a/bench.sh +++ b/bench.sh @@ -40,7 +40,7 @@ function run_test { echo "Running test ${COUNT} (${t}): logging to ${LOG}" echo "ARGS=${ARGS}" echo "*******************************" - time ${RUN} ${t} ${ARGS} 2>&1 | tee ${LOG} + (time ${RUN} ${t} ${ARGS} 2>&1) 2>&1 | tee ${LOG} echo echo "Test done; sleeping for a few seconds" echo @@ -61,4 +61,4 @@ function run_all_tests { } mkdir ${DIR} -(git log --oneline -1; echo; run_all_tests) | tee ${DIR}/timing.log +(cd ..; git log --oneline -1; cd - > /dev/null; git log --oneline -1; echo; run_all_tests) | tee ${DIR}/timing.log -- 2.34.1