perf-test: use 'eval' in memory_run

This allows the use of redirection in the tests
This commit is contained in:
David Bremner 2017-03-18 13:34:32 -03:00
parent 9c3a27dee9
commit 0c8ce66ef4

View file

@ -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