Refactor "test_ignore" to accepts test names separated with comma // Resolve #753

This commit is contained in:
Ivan Kravets
2016-08-21 19:32:11 +03:00
parent 0f7f301787
commit f5b4cb0ae8
2 changed files with 5 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ def cli(ctx, environment, ignore, upload_port, project_dir, verbose):
if projectconf.has_option(section, "test_ignore"):
_ignore.extend([p.strip()
for p in projectconf.get(
section, "test_ignore").split("\n")
section, "test_ignore").split(",")
if p.strip()])
if testname != "*" and \
any([fnmatch(testname, p) for p in _ignore]):