diff --git a/tools/test.py b/tools/test.py index a1401589c9b..9d227b10aec 100755 --- a/tools/test.py +++ b/tools/test.py @@ -709,7 +709,10 @@ class TestRepository(TestSuite): (file, pathname, description) = imp.find_module('testcfg', [ self.path ]) module = imp.load_module('testcfg', file, pathname, description) self.config = module.GetConfiguration(context, self.path) - self.config.additional_flags = context.node_args + if hasattr(self.config, 'additional_flags'): + self.config.additional_flags += context.node_args + else: + self.config.additional_flags = context.node_args finally: if file: file.close()