From: David Bremner Date: Sat, 18 Mar 2017 16:34:32 +0000 (-0300) Subject: perf-test: use 'eval' in memory_run X-Git-Tag: 0.25_rc0~103 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=0c8ce66ef4645e84887884fb5669fe158172f426;p=notmuch-old perf-test: use 'eval' in memory_run This allows the use of redirection in the tests --- diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh index 00d2f1c6..c89d5aab 100644 --- a/performance-test/perf-test-lib.sh +++ b/performance-test/perf-test-lib.sh @@ -149,7 +149,7 @@ memory_run () printf "[ %d ]\t%s\n" $test_count "$1" - NOTMUCH_TALLOC_REPORT="$talloc_log" valgrind --leak-check=full --log-file="$log_file" $2 + NOTMUCH_TALLOC_REPORT="$talloc_log" eval "valgrind --leak-check=full --log-file='$log_file' $2" awk '/LEAK SUMMARY/,/suppressed/ { sub(/^==[0-9]*==/," "); print }' "$log_file" echo