diff options
author | Brendan Jackman <[email protected]> | 2024-04-15 14:43:54 +0000 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-04-29 12:22:08 -0700 |
commit | 0540193614eb6fadb140d87b076ee7094615f76d (patch) | |
tree | baffdeacc4afcaec164d4d8397eef29121980c45 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 72cd4de01d8b106182741132d5e0b61c3f55d636 (diff) |
KVM: selftests: Avoid assuming "sudo" exists in NX hugepage test
Writing various root-only files, omit "sudo" when already running as root
to allow running the NX hugepage test on systems with a minimal rootfs,
i.e. without sudo.
Signed-off-by: Brendan Jackman <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[sean: name the helper do_sudo() instead of maybe_sudo(), massage changelog]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions