mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
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: b58261584d ("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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user