summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-12-18 14:21:09 -0600
committerMichael E Brown <michael_e_brown@dell.com>2007-12-18 14:21:09 -0600
commit0f90b968f36a9d945b77ed65bea93e764c077cb6 (patch)
tree3761479bf77914b9d5ccfd390ca887994150a7c3 /py/mock.py
parente65d55ea8421f573c9a7e4ab0184afdcc89f2f51 (diff)
downloadmock-0f90b968f36a9d945b77ed65bea93e764c077cb6.tar.gz
mock-0f90b968f36a9d945b77ed65bea93e764c077cb6.tar.xz
mock-0f90b968f36a9d945b77ed65bea93e764c077cb6.zip
better ordering constraints for plugin initialization.
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/py/mock.py b/py/mock.py
index 00bf291..894e297 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -205,8 +205,12 @@ def setup_default_config_opts(config_opts, unprivUid):
config_opts['cleanup_on_success'] = 1
config_opts['cleanup_on_failure'] = 1
- # (global) plugins and plugin configs
- config_opts['plugins'] = ('ccache', 'yum_cache', 'root_cache', 'bind_mount')
+ # (global) plugins and plugin configs.
+ # ordering constraings: tmpfs must be first.
+ # root_cache next.
+ # after that, any plugins that must create dirs (yum_cache)
+ # any plugins without preinit hooks should be last.
+ config_opts['plugins'] = ('tmpfs', 'root_cache', 'yum_cache', 'bind_mount', 'ccache')
config_opts['plugin_dir'] = os.path.join(PKGPYTHONDIR, "plugins")
config_opts['plugin_conf'] = {
'ccache_enable': True,