diff options
author | Brian White <mscdex@mscdex.net> | 2017-06-02 02:07:58 -0400 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2017-06-05 16:43:14 -0400 |
commit | 8cc8358ef74a2ac0d0a662383977c7c80c75ff94 (patch) | |
tree | 3881d41b5428d083bae78264c7878385d75f5476 /tools | |
parent | aae0d4559c9904db4168c30eb45552600599a238 (diff) | |
download | android-node-v8-8cc8358ef74a2ac0d0a662383977c7c80c75ff94.tar.gz android-node-v8-8cc8358ef74a2ac0d0a662383977c7c80c75ff94.tar.bz2 android-node-v8-8cc8358ef74a2ac0d0a662383977c7c80c75ff94.zip |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/test.py b/tools/test.py index 8ba5ef6aaf..d45b4f0de9 100755 --- a/tools/test.py +++ b/tools/test.py @@ -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() |