]> www.infradead.org Git - users/hch/misc.git/commitdiff
perf test: Stat std output don't fail metric only
authorIan Rogers <irogers@google.com>
Sun, 14 Sep 2025 18:21:40 +0000 (11:21 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Oct 2025 18:05:41 +0000 (15:05 -0300)
When running on a hypervisor the expected IPC metric may be missing as
the events may fail to be read. Don't expect metric output for this
test to avoid it failing.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/stat+std_output.sh

index 6fee67693ba7a9beee713c6954ab6b0bea563387..ec41f24299d9a7577d6c4c13f58a15beb7173ee0 100755 (executable)
@@ -90,7 +90,11 @@ function commachecker()
                }
        done < "${stat_output}"
 
-       [ $metric_only -eq 1 ] && exit 1
+       if [ $metric_only -ne 1 ]
+       then
+               echo "Missing metric only output in:"
+               cat "${stat_output}"
+       fi
        return 0
 }