Permalink
Browse files

Fixes issue where no tag was passed in CLI

  • Loading branch information...
mitgr81 committed Jul 9, 2012
1 parent d0d5692 commit 3b9c77de9312453677757a18d6fd45acf4a53985
Showing with 5 additions and 1 deletion.
  1. +5 −1 lettuce/bin.py
View
@@ -69,13 +69,17 @@ def main(args=sys.argv[1:]):
except ValueError:
pass
+ tags = None
+ if options.tags:
+ tags = [tag.strip('@') for tag in options.tags]
+
runner = lettuce.Runner(
base_path,
scenarios=options.scenarios,
verbosity=options.verbosity,
enable_xunit=options.enable_xunit,
xunit_filename=options.xunit_file,
- tags=[tag.strip('@') for tag in options.tags],
+ tags=tags,
)
result = runner.run()

0 comments on commit 3b9c77d

Please sign in to comment.