Commit b3d1dcd0 authored by Ian Rogers's avatar Ian Rogers Committed by Namhyung Kim
Browse files

perf tests kvm: Avoid leaving perf.data.guest file around



Ensure the perf.data output when checking permissions is written to
/dev/null so that it isn't left in the directory the test is run.

Fixes: b5826158 ("perf test kvm: Add some basic perf kvm test coverage")
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 5c5f6fe3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ setup_qemu() {
		skip "/dev/kvm not accessible"
	fi

	if ! perf kvm stat record -a sleep 0.01 >/dev/null 2>&1; then
	if ! perf kvm stat record -o /dev/null -a sleep 0.01 >/dev/null 2>&1; then
		skip "No permission to record kvm events"
	fi