mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Create master cache dir
This commit is contained in:
parent
8058bbe6ca
commit
bdb26ddf83
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ class SPMTest(TestCase):
|
|||
os.mkdir(_TMP_SPM)
|
||||
self.ui = SPMTestUserInterface()
|
||||
self.client = salt.spm.SPMClient(self.ui, __opts__)
|
||||
master_cache = salt.config.DEFAULT_MASTER_OPTS['cachedir']
|
||||
if not os.path.exists(master_cache):
|
||||
os.makedirs(master_cache)
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(_TMP_SPM, ignore_errors=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue