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

Side by Side Diff: client/virt/tests/clock_getres.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, 8 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/virt/tests/boot.py ('k') | client/virt/tests/ethtool.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 logging, os 1 import logging, os
2 from autotest_lib.client.common_lib import error 2 from autotest_lib.client.common_lib import error
3 from autotest_lib.client.bin import utils 3 from autotest_lib.client.bin import utils
4 4
5 5
6 def run_clock_getres(test, params, env): 6 def run_clock_getres(test, params, env):
7 """ 7 """
8 Verify if guests using kvm-clock as the time source have a sane clock 8 Verify if guests using kvm-clock as the time source have a sane clock
9 resolution. 9 resolution.
10 10
(...skipping 12 matching lines...) Expand all
23 vm = env.get_vm(params["main_vm"]) 23 vm = env.get_vm(params["main_vm"])
24 vm.verify_alive() 24 vm.verify_alive()
25 timeout = int(params.get("login_timeout", 360)) 25 timeout = int(params.get("login_timeout", 360))
26 session = vm.wait_for_login(timeout=timeout) 26 session = vm.wait_for_login(timeout=timeout)
27 27
28 vm.copy_files_to(source_name, dest_name) 28 vm.copy_files_to(source_name, dest_name)
29 session.cmd("gcc -lrt -o %s %s" % (bin_name, dest_name)) 29 session.cmd("gcc -lrt -o %s %s" % (bin_name, dest_name))
30 session.cmd(bin_name) 30 session.cmd(bin_name)
31 logging.info("PASS: Guest reported appropriate clock resolution") 31 logging.info("PASS: Guest reported appropriate clock resolution")
32 logging.info("Guest's dmesg:\n%s", session.cmd_output("dmesg").strip()) 32 logging.info("Guest's dmesg:\n%s", session.cmd_output("dmesg").strip())
OLDNEW
« no previous file with comments | « client/virt/tests/boot.py ('k') | client/virt/tests/ethtool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698