mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Run cache_master test in tmp dir
This commit is contained in:
parent
8105fd9715
commit
5ff51affbd
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue