]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Revert "respect --os-version and --os-type in teuthology.run. fixes #10279"
authorAndrew Schoen <aschoen@redhat.com>
Fri, 12 Dec 2014 22:29:19 +0000 (16:29 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 12 Dec 2014 22:29:19 +0000 (16:29 -0600)
This reverts commit 5e943bb35f74d56667dbd73da4032d0acec8fef4.

teuthology/run.py
teuthology/test/test_run.py

index a0f75339cef4ab166dc0e9afb3aa1ef7b12ba582..084df094bdaf0b6a20de6fe5767e26b1551df6e4 100644 (file)
@@ -254,8 +254,6 @@ def main(args):
     block = args["--block"]
     lock = args["--lock"]
     suite_path = args["--suite-path"]
-    os_type = args["--os-type"]
-    os_version = args["--os-version"]
 
     set_up_logging(verbose, archive)
 
@@ -293,14 +291,6 @@ def main(args):
     # fetches the tasks and returns a new suite_path if needed
     config["suite_path"] = fetch_tasks_if_needed(config)
 
-    # overwrite the config value of os_type if --os-type is provided
-    if os_type:
-        config["os_type"] = os_type
-
-    # overwrite the config value of os_version if --os-version is provided
-    if os_version:
-        config["os_version"] = os_version
-
     # create a FakeNamespace instance that mimics the old argparse way of doing
     # things we do this so we can pass it to run_tasks without porting those
     # tasks to the new way of doing things right now
index cb1a9212fcba6101e5805bf00707a6c647f127e6..82caad6d24ee67e21f0773a4953971eddf3df590 100644 (file)
@@ -194,5 +194,3 @@ class TestRun(object):
         # ensures that values missing in args are added with the correct value
         assert fake_ctx["owner"] == "the_owner"
         assert fake_ctx["machine_type"] == "machine_type"
-        assert fake_ctx["config"]["os_version"] == "os_version"
-        assert fake_ctx["config"]["os_type"] == "os_type"