mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Run cache_master test in tmp dir
This commit is contained in:
parent
8105fd9715
commit
5ff51affbd
@ -444,12 +444,14 @@ class CPModuleTest(ModuleCase):
|
||||
self.assertIn('ARTHUR:', data)
|
||||
self.assertNotIn('bacon', data)
|
||||
|
||||
def test_cache_master(self):
|
||||
@with_tempfile
|
||||
def test_cache_master(self, tgt):
|
||||
'''
|
||||
cp.cache_master
|
||||
'''
|
||||
ret = self.run_function(
|
||||
'cp.cache_master',
|
||||
[tgt],
|
||||
)
|
||||
for path in ret:
|
||||
self.assertTrue(os.path.exists(path))
|
||||
|
Loading…
Reference in New Issue
Block a user