Skip to content

Commit 48cad9c

Browse files
mscdexjasnell
authored andcommitted
tools: fix node args passing in test runner
This fixes a regression from 53c88fa so that special arguments can once again be passed to the node executable when running tests. PR-URL: #13384 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 339d220 commit 48cad9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/test.py

+4
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,10 @@ def GetConfiguration(self, context):
817817
(file, pathname, description) = imp.find_module('testcfg', [ self.path ])
818818
module = imp.load_module('testcfg', file, pathname, description)
819819
self.config = module.GetConfiguration(context, self.path)
820+
if hasattr(self.config, 'additional_flags'):
821+
self.config.additional_flags += context.node_args
822+
else:
823+
self.config.additional_flags = context.node_args
820824
finally:
821825
if file:
822826
file.close()

0 commit comments

Comments
 (0)