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

Unified Diff: client/tests/kvm/control

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch 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
Index: client/tests/kvm/control
diff --git a/client/tests/kvm/control b/client/tests/kvm/control
index 63bbe5dde2eade5fa29f3cee1856d0285ee491f7..d226adf3751a5ab2bbbcd84ccb7a84e474a781cc 100644
--- a/client/tests/kvm/control
+++ b/client/tests/kvm/control
@@ -53,6 +53,20 @@ str = """
"""
tests_cfg = kvm_config.config()
tests_cfg_path = os.path.join(kvm_test_dir, "tests.cfg")
+
+if args:
+ # We get test parameters from command line
+ for arg in args:
+ try:
+ (key, value) = re.findall("(.*)=(.*)", arg)[0]
+ if key == "only":
+ str += "only %s\n" % value
+ elif key == "no":
+ str += "no %s\n" % value
+ else:
+ str += "%s = %s\n" % (key, value)
+ except IndexError:
+ pass
tests_cfg.fork_and_parse(tests_cfg_path, str)
# Run the tests
« cli/job.py ('K') | « client/tests/kvm/cd_hash.py ('k') | client/tests/kvm/deps/finish.exe » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698