aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/robotframework.py
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2018-03-08 16:23:38 +0100
committermrichomme <morgan.richomme@orange.com>2018-03-08 16:24:25 +0100
commita04a201551fadc5bc130a9037b100c0e18f3c043 (patch)
tree4691c6ddb451b2fba62af255c0f5afe4ac4abba6 /xtesting/core/robotframework.py
parenta5c84f76643cce4193edec85367b11e1cca53a35 (diff)
Add tags support using include options
Change-Id: Ibfd8645e2ec7da7d05ae806b5bc1f5a90bfc39a2 Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'xtesting/core/robotframework.py')
-rw-r--r--xtesting/core/robotframework.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/xtesting/core/robotframework.py b/xtesting/core/robotframework.py
index cc6020a2..007b9629 100644
--- a/xtesting/core/robotframework.py
+++ b/xtesting/core/robotframework.py
@@ -96,6 +96,7 @@ class RobotFramework(testcase.TestCase):
suites = kwargs["suites"]
variable = kwargs.get("variable", [])
variablefile = kwargs.get("variablefile", [])
+ include = kwargs.get("include", [])
except KeyError:
self.__logger.exception("Mandatory args were not passed")
return self.EX_RUN_ERROR
@@ -110,7 +111,7 @@ class RobotFramework(testcase.TestCase):
return self.EX_RUN_ERROR
stream = StringIO()
robot.run(*suites, variable=variable, variablefile=variablefile,
- output=self.xml_file, log='NONE',
+ include=include, output=self.xml_file, log='NONE',
report='NONE', stdout=stream)
self.__logger.info("\n" + stream.getvalue())
self.__logger.info("Results were successfully generated")