]> git.notmuchmail.org Git - notmuch/commitdiff
perf-test: fix for verbose
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 26 Jun 2021 20:13:03 +0000 (15:13 -0500)
committerDavid Bremner <david@tethera.net>
Thu, 5 Aug 2021 12:04:53 +0000 (09:04 -0300)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
performance-test/perf-test-lib.sh

index e7c502b6ca3d024aab87ab4d60d808fa8cf199df..41b1ddfdcb08cfc03a1c6e74a4bf0259d4840170 100644 (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