mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47524 from dwoz/whitelistlines
Gracefully handle blank lines in whitelist.txt
This commit is contained in:
commit
7cc8d9d30a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue