diff --git a/optional_plugins/loader_yaml/avocado_loader_yaml/__init__.py b/optional_plugins/loader_yaml/avocado_loader_yaml/__init__.py index 574308b9f899bcc8c093504c6d3f86913fa58b73..92202c4ad1cfa1ca6e138ad8db0685cf4fcda9bb 100644 --- a/optional_plugins/loader_yaml/avocado_loader_yaml/__init__.py +++ b/optional_plugins/loader_yaml/avocado_loader_yaml/__init__.py @@ -89,6 +89,8 @@ class YamlTestsuiteLoader(loader.TestLoader): for key, value in iteritems(_args): setattr(args, key, value) extra_params = params.get("test_reference_resolver_extra", default={}) + if extra_params: + extra_params = copy.deepcopy(extra_params) return loader_class(args, extra_params) def discover(self, reference, which_tests=loader.DEFAULT):