Merge pull request #41865 from twangboy/fix_coverage_check

Don't run coverage if not admin
This commit is contained in:
Mike Place 2017-06-20 18:38:54 -05:00 committed by GitHub
commit 955d5b710d

View File

@ -448,7 +448,7 @@ class SaltTestsuiteParser(SaltCoverageTestingParser):
if self.options.coverage and any((
self.options.name,
is_admin,
not is_admin,
not self.options.run_destructive)) \
and self._check_enabled_suites(include_unit=True):
self.error(