Commit a41eb600 authored by Achuith Bhandarkar's avatar Achuith Bhandarkar Committed by Commit Bot

cros_vm can handle kvm errors.

BUG=chromium:968349
TEST=local

Change-Id: I51a41bee08492482ee2ef0a8e98b6e6c7b61e943
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470323
Auto-Submit: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: default avatarBen Pastene <bpastene@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817060}
parent ebe937e1
......@@ -959,15 +959,6 @@ def main():
logging.error('The default DUT hostname of %s is unreachable.',
LAB_DUT_HOSTNAME)
return 1
if args.use_vm:
if not os.path.exists('/dev/kvm'):
logging.error('/dev/kvm is missing. Is KVM installed on this machine?')
return 1
elif not os.access('/dev/kvm', os.W_OK):
logging.error(
'/dev/kvm is not writable as current user. Perhaps you should be '
'root?')
return 1
args.cros_cache = os.path.abspath(args.cros_cache)
return args.func(args, unknown_args)
......
Markdown is supported
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