Merge pull request #47524 from dwoz/whitelistlines

Gracefully handle blank lines in whitelist.txt
This commit is contained in:
Mike Place 2018-05-08 10:04:22 -05:00 committed by GitHub
commit 7cc8d9d30a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -698,6 +698,9 @@ class SaltTestsuiteParser(SaltCoverageTestingParser):
with TestDaemon(self):
if self.options.name:
for name in self.options.name:
name = name.strip()
if not name:
continue
if os.path.isfile(name):
if not name.endswith('.py'):
continue