self.available_features = set(available_features)
self.pipefail = pipefail
- def clone(self):
- # FIXME: Chain implementations?
- #
- # FIXME: Allow extra parameters?
- return TestingConfig(self, self.name, self.suffixes, self.test_format,
- self.environment, self.substitutions,
- self.unsupported,
- self.test_exec_root, self.test_source_root,
- self.excludes, self.available_features,
- self.pipefail)
-
def finish(self, litConfig):
"""finish() - Finish this config object, after loading is complete."""
Test discovery functions.
"""
+import copy
import os
import sys
# Otherwise, copy the current config and load the local configuration
# file into it.
- config = parent.clone()
+ config = copy.copy(parent)
if litConfig.debug:
litConfig.note('loading local config %r' % cfgpath)
config.load_from_path(cfgpath, litConfig)
#
#config.test_source_root = None
#config.test_exec_root = None
+
+# Check that arbitrary config values are copied (tested by subdir/lit.local.cfg).
+config.an_extra_variable = False