Skip to content
Commit bcb2b94a authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: selftests: exit with 0 status code when tests cannot be run



Right now, skipped tests are returning a failure exit code if /dev/kvm does
not exists.  Consistently return a zero status code so that various scripts
over the interwebs do not complain.  Also return a zero status code if
the KVM_CAP_SYNC_REGS capability is not present, and hardcode in the
test the register kinds that are covered (rather than just using whatever
value of KVM_SYNC_X86_VALID_FIELDS is provided by the kernel headers).

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 452a68d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment