From 8cc8358ef74a2ac0d0a662383977c7c80c75ff94 Mon Sep 17 00:00:00 2001 From: Brian White Date: Fri, 2 Jun 2017 02:07:58 -0400 Subject: [PATCH] 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 Reviewed-By: Refael Ackermann --- tools/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test.py b/tools/test.py index 8ba5ef6aafa..d45b4f0de94 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()