From: Tony Mack Date: Fri, 18 Jan 2008 18:28:09 +0000 (+0000) Subject: -remove unnecessary code X-Git-Tag: 2008-02-11-last-vmware-support~134 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f2b8deabe4c49831121bab12ba3e1d947ba818ed;p=tests.git -remove unnecessary code --- diff --git a/qaapi/qa/modules/plc/install.py b/qaapi/qa/modules/plc/install.py index 1a30d13..d633919 100644 --- a/qaapi/qa/modules/plc/install.py +++ b/qaapi/qa/modules/plc/install.py @@ -39,6 +39,7 @@ class install(Test): # build command full_command = "" + install_command = " rpm -Uvh %(url)s " if system_type in ['vserv', 'vserver']: full_command += " vserver %(root_dir)s exec " elif system_type in ['chroot']: @@ -46,7 +47,8 @@ class install(Test): else: raise Exception, "Invalid system type %(system_type)s" % locals() - (stdout, stderr) = utils.popen(full_command + " rpm -Uvh " + url) + full_command += install_command % locals() + (stdout, stderr) = utils.popen(full_command) if self.config.verbose: utils.header("\n".join(stdout))