Skip to content

Commit b3d1dcd

Browse files
captain5050namhyung
authored andcommitted
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: b582615 ("perf test kvm: Add some basic perf kvm test coverage") Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 5c5f6fe commit b3d1dcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/perf/tests/shell/kvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ setup_qemu() {
118118
skip "/dev/kvm not accessible"
119119
fi
120120

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

0 commit comments

Comments
 (0)