aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/behaveframework.py
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/core/behaveframework.py')
-rw-r--r--xtesting/core/behaveframework.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/xtesting/core/behaveframework.py b/xtesting/core/behaveframework.py
index e288fff8..ee6e8603 100644
--- a/xtesting/core/behaveframework.py
+++ b/xtesting/core/behaveframework.py
@@ -78,7 +78,6 @@ class BehaveFramework(testcase.TestCase):
"""
try:
suites = kwargs["suites"]
- tags = kwargs.get("tags", [])
except KeyError:
self.__logger.exception("Mandatory args were not passed")
return self.EX_RUN_ERROR
@@ -88,12 +87,13 @@ class BehaveFramework(testcase.TestCase):
except Exception: # pylint: disable=broad-except
self.__logger.exception("Cannot create %s", self.res_dir)
return self.EX_RUN_ERROR
- config = ['--tags='+','.join(tags),
- '--junit', '--junit-directory={}'.format(self.res_dir),
+ config = ['--junit', '--junit-directory={}'.format(self.res_dir),
'--format=json', '--outfile={}'.format(self.json_file)]
html_file = os.path.join(self.res_dir, 'output.html')
config += ['--format=behave_html_formatter:HTMLFormatter',
'--outfile={}'.format(html_file)]
+ if kwargs.get("tags", False):
+ config += ['--tags='+','.join(kwargs.get("tags", []))]
if kwargs.get("console", False):
config += ['--format=pretty', '--outfile=-']
for feature in suites: