Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: client/tests/kvm/tests/physical_resources_check.py

Issue 6883246: Merge autotest upstream from @5318 ~ @5336 (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tests/kvm/tests/pci_hotplug.py ('k') | client/tests/kvm/tests/qemu_img.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import re, string, logging 1 import re, string, logging
2 from autotest_lib.client.common_lib import error 2 from autotest_lib.client.common_lib import error
3 import kvm_monitor 3 from autotest_lib.client.virt import kvm_monitor
4 4
5 5
6 def run_physical_resources_check(test, params, env): 6 def run_physical_resources_check(test, params, env):
7 """ 7 """
8 Check physical resources assigned to KVM virtual machines: 8 Check physical resources assigned to KVM virtual machines:
9 1) Log into the guest 9 1) Log into the guest
10 2) Verify whether cpu counts ,memory size, nics' model, 10 2) Verify whether cpu counts ,memory size, nics' model,
11 count and drives' format & count, drive_serial, UUID 11 count and drives' format & count, drive_serial, UUID
12 reported by the guest OS matches what has been assigned 12 reported by the guest OS matches what has been assigned
13 to the VM (qemu command line) 13 to the VM (qemu command line)
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 catch_serial_cmd = params.get("catch_serial_cmd") 155 catch_serial_cmd = params.get("catch_serial_cmd")
156 f_fail = verify_device(params.get("drive_serial"), "Serial", 156 f_fail = verify_device(params.get("drive_serial"), "Serial",
157 catch_serial_cmd) 157 catch_serial_cmd)
158 n_fail += f_fail 158 n_fail += f_fail
159 159
160 if n_fail != 0: 160 if n_fail != 0:
161 raise error.TestFail("Physical resources check test reported %s " 161 raise error.TestFail("Physical resources check test reported %s "
162 "failures. Please verify the test logs." % n_fail) 162 "failures. Please verify the test logs." % n_fail)
163 163
164 session.close() 164 session.close()
OLDNEW
« no previous file with comments | « client/tests/kvm/tests/pci_hotplug.py ('k') | client/tests/kvm/tests/qemu_img.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698