tools: fix node args passing in test runner
This fixes a regression from 53c88fa4111 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 ])
|
(file, pathname, description) = imp.find_module('testcfg', [ self.path ])
|
||||||
module = imp.load_module('testcfg', file, pathname, description)
|
module = imp.load_module('testcfg', file, pathname, description)
|
||||||
self.config = module.GetConfiguration(context, self.path)
|
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:
|
finally:
|
||||||
if file:
|
if file:
|
||||||
file.close()
|
file.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user