From 89bb80232f777b0619d4168b292338c16a0a704c Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 7 Feb 2018 16:08:05 +0100 Subject: Add variablefile as possible robot.run() args MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic80840957b4d9c3c4a1615696a2851f3f5bf7bf4 Signed-off-by: Cédric Ollivier --- functest/core/robotframework.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'functest/core/robotframework.py') diff --git a/functest/core/robotframework.py b/functest/core/robotframework.py index 689d9d946..ccfa26b71 100644 --- a/functest/core/robotframework.py +++ b/functest/core/robotframework.py @@ -96,6 +96,7 @@ class RobotFramework(testcase.TestCase): try: suites = kwargs["suites"] variable = kwargs.get("variable", []) + variablefile = kwargs.get("variablefile", []) except KeyError: self.__logger.exception("Mandatory args were not passed") return self.EX_RUN_ERROR @@ -109,8 +110,9 @@ class RobotFramework(testcase.TestCase): self.__logger.exception("Cannot create %s", self.res_dir) return self.EX_RUN_ERROR stream = StringIO() - robot.run(*suites, variable=variable, output=self.xml_file, - log='NONE', report='NONE', stdout=stream) + robot.run(*suites, variable=variable, variablefile=variablefile, + output=self.xml_file, log='NONE', + report='NONE', stdout=stream) self.__logger.info("\n" + stream.getvalue()) self.__logger.info("Results were successfully generated") try: -- cgit 1.2.3-korg