Gracefully handle blank lines in whitelist.txt

This commit is contained in:
Daniel A. Wozniak 2018-05-07 13:32:56 -07:00
parent e9c1723175
commit 2605ff8712
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

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