mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use warnings to warn user
This commit is contained in:
parent
144c68e214
commit
cadd759727
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ from __future__ import absolute_import, print_function
|
|||
import os
|
||||
import sys
|
||||
import time
|
||||
import warnings
|
||||
|
||||
TESTS_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
||||
if os.name == 'nt':
|
||||
|
@ -481,7 +482,7 @@ class SaltTestsuiteParser(SaltCoverageTestingParser):
|
|||
not is_admin,
|
||||
not self.options.run_destructive)) \
|
||||
and self._check_enabled_suites(include_unit=True):
|
||||
log.warn("Test suite not running with elevated priviledges")
|
||||
warnings.warn("Test suite not running with elevated priviledges")
|
||||
else:
|
||||
is_admin = os.geteuid() == 0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue