Simplify getting pre_condition cmds 07/23407/3
authorzshi <zshi@redhat.com>
Thu, 20 Oct 2016 07:53:37 +0000 (15:53 +0800)
committerChristopher Price <christopher.price@ericsson.com>
Fri, 21 Oct 2016 09:56:52 +0000 (09:56 +0000)
Change-Id: I8ca04cbdc4236e9ff754bad816bb7282673b5b55
Signed-off-by: zshi <zshi@redhat.com>
dovetail/run.py

index 8fe27c5..ddeb311 100755 (executable)
@@ -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)