mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
Don't pass "" to cros_run_vm_test if vm_graphics_flag isn't set.
This would not have been a problem if "--no_graphics" is used. Change-Id: I3645391d25d4bb8618109ff5be0ca2fbe8e96a60 BUG=chromium-os:9373 TEST=Ran by hand Review URL: http://codereview.chromium.org/5104006
This commit is contained in:
parent
9b054f0f88
commit
d0473d1e9f
@ -274,15 +274,20 @@ class VirtualAUTest(unittest.TestCase, AUTest):
|
||||
"""Runs vm smoke suite to verify image."""
|
||||
# image_to_live already verifies lsb-release matching. This is just
|
||||
# for additional steps.
|
||||
output = RunCommand(['%s/cros_run_vm_test' % self.crosutilsbin,
|
||||
'--image_path=%s' % self.vm_image_path,
|
||||
'--snapshot',
|
||||
'--persist',
|
||||
vm_graphics_flag,
|
||||
'--kvm_pid=%s' % _KVM_PID_FILE,
|
||||
'--test_case=%s' % _VERIFY_SUITE,
|
||||
], error_ok=True, enter_chroot=False,
|
||||
redirect_stdout=True)
|
||||
|
||||
commandWithArgs = ['%s/cros_run_vm_test' % self.crosutilsbin,
|
||||
'--image_path=%s' % self.vm_image_path,
|
||||
'--snapshot',
|
||||
'--persist',
|
||||
'--kvm_pid=%s' % _KVM_PID_FILE,
|
||||
_VERIFY_SUITE,
|
||||
]
|
||||
|
||||
if vm_graphics_flag:
|
||||
commandWithArgs.append(vm_graphics_flag)
|
||||
|
||||
output = RunCommand(commandWithArgs, error_ok=True, enter_chroot=False,
|
||||
redirect_stdout=True)
|
||||
return self.CommonVerifyImage(self, output, percent_required_to_pass)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user