mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Copy the extension modules into the new master root_dir
This commit is contained in:
parent
bd35008d34
commit
b2f3cecea5
@ -478,9 +478,17 @@ class TestDaemon(object):
|
||||
)}
|
||||
)
|
||||
|
||||
master_opts['extension_modules'] = os.path.join(
|
||||
INTEGRATION_TEST_DIR, 'files', 'extension_modules'
|
||||
)
|
||||
# We need to copy the extension modules into the new master root_dir or
|
||||
# it will be prefixed by it
|
||||
new_extension_modules_path = os.path.join(master_opts['root_dir'], 'extension_modules')
|
||||
if not os.path.exists(new_extension_modules_path):
|
||||
shutil.copytree(
|
||||
os.path.join(
|
||||
INTEGRATION_TEST_DIR, 'files', 'extension_modules'
|
||||
),
|
||||
new_extension_modules_path
|
||||
)
|
||||
master_opts['extension_modules'] = os.path.join(TMP, 'master-minion-root', 'extension_modules')
|
||||
|
||||
# Point the config values to the correct temporary paths
|
||||
for name in ('hosts', 'aliases'):
|
||||
|
Loading…
Reference in New Issue
Block a user