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

Unified Diff: client/tests/kvm/tests/clock_getres.py

Issue 6124004: Revert "Merge remote branch 'cros/upstream' into autotest-rebase" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/kvm/tests/build.py ('k') | client/tests/kvm/tests/ethtool.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/tests/clock_getres.py
diff --git a/client/tests/kvm/tests/clock_getres.py b/client/tests/kvm/tests/clock_getres.py
deleted file mode 100644
index f85bb2677c396abb5cc83096214cd138100f2282..0000000000000000000000000000000000000000
--- a/client/tests/kvm/tests/clock_getres.py
+++ /dev/null
@@ -1,39 +0,0 @@
-import logging, time, os
-from autotest_lib.client.common_lib import error
-from autotest_lib.client.common_lib import utils
-import kvm_test_utils, kvm_utils
-
-
-def run_clock_getres(test, params, env):
- """
- Verify if guests using kvm-clock as the time source have a sane clock
- resolution.
-
- @param test: kvm test object.
- @param params: Dictionary with test parameters.
- @param env: Dictionary with the test environment.
- """
- t_name = "test_clock_getres"
- base_dir = "/tmp"
-
- deps_dir = os.path.join(test.bindir, "deps", t_name)
- os.chdir(deps_dir)
- try:
- utils.system("make clean")
- utils.system("make")
- except:
- raise error.TestError("Failed to compile %s" % t_name)
-
- test_clock = os.path.join(deps_dir, t_name)
- if not os.path.isfile(test_clock):
- raise error.TestError("Could not find %s" % t_name)
-
- vm = kvm_test_utils.get_living_vm(env, params.get("main_vm"))
- timeout = int(params.get("login_timeout", 360))
- session = kvm_test_utils.wait_for_login(vm, timeout=timeout)
- if not vm.copy_files_to(test_clock, base_dir):
- raise error.TestError("Failed to copy %s to VM" % t_name)
- session.cmd(os.path.join(base_dir, t_name))
- logging.info("PASS: Guest reported appropriate clock resolution")
- logging.info("guest's dmesg:")
- session.cmd_output("dmesg")
« no previous file with comments | « client/tests/kvm/tests/build.py ('k') | client/tests/kvm/tests/ethtool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698