]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Play nice with EACCES errors in open_path_or_exit()
authorSean Christopherson <seanjc@google.com>
Fri, 16 May 2025 21:59:08 +0000 (14:59 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:39:10 +0000 (13:39 -0700)
commitba300a728f6f764828d735f01f314900fb6a8315
tree1405aebd9350b1cf5e54a0ddff484f6ab90c6712
parent6e1cce7cda1b69e455f89dbc0eeec128506fe969
KVM: selftests: Play nice with EACCES errors in open_path_or_exit()

Expand the SKIP conditions of the open_path_or_exit() helper to skip on
EACCES as well as ENOENT.  Most often, lack of permissions to a file
needed by a KVM selftests is due to a file being root-only by default,
not because of any bug/misconfiguration that warrants failing a test.

Link: https://lore.kernel.org/r/20250516215909.2551628-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/kvm_util.c