mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
tools: fix node args passing in test runner
This fixes a regression from 53c88fa411
so that special arguments
can once again be passed to the node executable when running tests.
PR-URL: https://github.com/nodejs/node/pull/13384
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
aae0d4559c
commit
8cc8358ef7
@ -817,6 +817,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)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user