Merge pull request #47290 from dwoz/test_cp_fix

Run cache_master test in tmp dir
This commit is contained in:
Daniel Wozniak 2018-04-24 16:37:20 -07:00 committed by GitHub
commit f591cff643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))