Skip to content

Commit c98d159

Browse files
stefanmbmhdawson
authored andcommitted
test: fix test runner arg regression
Append --node-args to existing list, don't overwrite arg list. Fixes: #5442 PR-URL: #5446 Reviewed-By: Ben Noorhduis <[email protected]> Reviewed-by: Michael Dawson <[email protected]>
1 parent 8872840 commit c98d159

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,10 @@ def GetConfiguration(self, context):
709709
(file, pathname, description) = imp.find_module('testcfg', [ self.path ])
710710
module = imp.load_module('testcfg', file, pathname, description)
711711
self.config = module.GetConfiguration(context, self.path)
712-
self.config.additional_flags = context.node_args
712+
if hasattr(self.config, 'additional_flags'):
713+
self.config.additional_flags += context.node_args
714+
else:
715+
self.config.additional_flags = context.node_args
713716
finally:
714717
if file:
715718
file.close()

0 commit comments

Comments
 (0)