diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2007-12-18 14:21:09 -0600 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2007-12-18 14:21:09 -0600 |
commit | 0f90b968f36a9d945b77ed65bea93e764c077cb6 (patch) | |
tree | 3761479bf77914b9d5ccfd390ca887994150a7c3 /py/mock.py | |
parent | e65d55ea8421f573c9a7e4ab0184afdcc89f2f51 (diff) | |
download | mock-0f90b968f36a9d945b77ed65bea93e764c077cb6.tar.gz mock-0f90b968f36a9d945b77ed65bea93e764c077cb6.tar.xz mock-0f90b968f36a9d945b77ed65bea93e764c077cb6.zip |
better ordering constraints for plugin initialization.
Diffstat (limited to 'py/mock.py')
-rwxr-xr-x | py/mock.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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, |