Commit a272195f authored by Ian Rogers's avatar Ian Rogers Committed by Arnaldo Carvalho de Melo
Browse files

perf test: Stat std output don't fail metric only



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: default avatarIan 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8dc364fa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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
}