perf-test: fix for verbose

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras 2021-06-26 15:13:03 -05:00 committed by David Bremner
parent c37c99126d
commit 6fec5d771e

View file

@ -212,7 +212,7 @@ time_run ()
{
printf " %-22s" "$1"
test_count=$(($test_count+1))
if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi
if test "$verbose" != "t"; then exec 4>test.output 3>&4; else exec 3>&1; fi
if [[ "$use_perf" = 1 ]]; then
command_str="perf record --call-graph=${perf_callgraph} -o ${log_dir}/${test_count}.perf $2"
else