mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #49192 from dwoz/git_test_fix_ng
Test fixes flaky test and unicode environment key/value
This commit is contained in:
commit
aaa9e37215
2 changed files with 4 additions and 1 deletions
|
@ -53,6 +53,8 @@ class PipModuleTest(ModuleCase):
|
|||
del self.pip_temp
|
||||
if 'PIP_SOURCE_DIR' in os.environ:
|
||||
os.environ.pop('PIP_SOURCE_DIR')
|
||||
if 'PIP_BUILD_DIR' in os.environ:
|
||||
os.environ.pop('PIP_BUILD_DIR')
|
||||
|
||||
def _check_download_error(self, ret):
|
||||
'''
|
||||
|
|
|
@ -12,7 +12,7 @@ import textwrap
|
|||
# Import Salt Testing libs
|
||||
from tests.support.case import ModuleCase
|
||||
from tests.support.unit import skipIf
|
||||
from tests.support.helpers import destructiveTest, skip_if_not_root
|
||||
from tests.support.helpers import destructiveTest, skip_if_not_root, flaky
|
||||
|
||||
# Import Salt libs
|
||||
import salt.utils.files
|
||||
|
@ -255,6 +255,7 @@ class SystemModuleTest(ModuleCase):
|
|||
self.assertTrue(self._same_times(time_now, cmp_time), msg=msg)
|
||||
self._test_hwclock_sync()
|
||||
|
||||
@flaky
|
||||
@destructiveTest
|
||||
@skip_if_not_root
|
||||
def test_set_system_time(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue