From: Marc Fiuczynski Date: Tue, 12 Feb 2008 03:42:09 +0000 (+0000) Subject: update plc_configure to match Tony's previous update of storing plc variables in... X-Git-Tag: tests-4.2-4~254 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ccca0bcbf72989c11d7ea38642104ac2cb0a933d;p=tests.git update plc_configure to match Tony's previous update of storing plc variables in plc_options --- diff --git a/qaapi/qa/tests/plc_configure.py b/qaapi/qa/tests/plc_configure.py index 392e9a7..c08993f 100644 --- a/qaapi/qa/tests/plc_configure.py +++ b/qaapi/qa/tests/plc_configure.py @@ -44,12 +44,12 @@ class plc_configure(Test): # Write temporary plc-config file tmpfconf, tmpfname = tempfile.mkstemp(".config","plc-config-tty") if self.config.verbose: - utils.header("generate temporary config file %(tmpfname)s"%locals()) - for (option, value) in plc_vars: - os.write(tmpfconf, 'e %s\n%s\n' % (optin, value)) + utils.header("generating temporary config file %(tmpfname)s"%locals()) + for (option, value) in plc_options: + os.write(tmpfconf, 'e %s\n%s\n' % (option, value)) os.write(tmpfconf,'w\nq\n') os.close(tmpfconf) - + # configure plc command = "plc-config-tty < %(tmpfname)s" % locals() if self.config.verbose: utils.header(command)