diff options
author | zshi <zshi@redhat.com> | 2016-10-20 15:53:37 +0800 |
---|---|---|
committer | Christopher Price <christopher.price@ericsson.com> | 2016-10-21 09:56:52 +0000 |
commit | bb5d6a119196dcfeabf141cca23b6495fc5e386e (patch) | |
tree | 4352edb4037fe52f54f111bca00f495c3e644edd | |
parent | 16bbb97bc3515a62443cb66a8954ac8eb1750ad8 (diff) |
Simplify getting pre_condition cmds
Change-Id: I8ca04cbdc4236e9ff754bad816bb7282673b5b55
Signed-off-by: zshi <zshi@redhat.com>
-rwxr-xr-x | dovetail/run.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dovetail/run.py b/dovetail/run.py index 8fe27c59..ddeb3117 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -49,8 +49,7 @@ def run_test(scenario): logger.debug('container id:%s' % container_id) if not Testcase.prepared(testcase.script_type()): - cmds = \ - Testcase.pre_condition_cls(testcase.script_type())['cmds'] + cmds = testcase.pre_condition()['cmds'] if cmds: for cmd in cmds: Container.exec_cmd(container_id, cmd) |