summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-10-26 19:05:50 +0100
committerNoel Power <noel.power@novell.com>2011-10-26 19:10:14 +0100
commit8e68391fc99b34702d76526e6b3ab4720ac017e4 (patch)
treeb4919cceb41b56bbc35e7a74017309f19f6b2c42 /configmgr
parent9b4d493fb468b5a8b067f106b73f7378b8802df4 (diff)
more tweaks to unittests, also move registrymodifications.xcu
registrymodifications.xcu has been moved to the solver ( unittest/user/data ) new OOO_CONFIG_REGISTRY_EXTRA_DIR env var will be used to specify the directory 'data' will be contained in so we can override various config items.
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index f6257b6cdbf4..0549f8a14c93 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -520,7 +520,17 @@ Components::Components(
parseXcsXcuLayer( 0, aUnitTestDir );
// next is required for the (somewhat strange) filter configuration
parseModuleLayer( 1, aUnitTestDir + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/spool")));
- parseModificationLayer();
+ // allow a directory to be specified to allow extra configuration to be stored
+ // for example to place a registrymodifications.xcu to override some configuration
+ rtl::OUString extra;
+ if (rtl::Bootstrap::get(
+ rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM(
+ "OOO_CONFIG_REGISTRY_EXTRA_DIR")),
+ extra))
+ {
+ parseXcsXcuLayer(3, extra);
+ }
return;
}