From a266cfe91b64d64c959a405bc593d0c7de5fb2c4 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 27 Jul 2014 01:53:08 -0400 Subject: [PATCH] test/runner will now pass all option args to node Importantly, this means that --debug and --debug-brk will work ;). --- test/runner.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/runner.in b/test/runner.in index 16d92e6..c44de03 100644 --- a/test/runner.in +++ b/test/runner.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (C) 2012, 2013, 2014 Free Software Foundation, Inc. # @@ -18,5 +18,14 @@ # along with this program. If not, see . # # -NODE_PATH=".:$NODE_PATH" @NODE@ --stack-trace-limit=20 \ +declare -a nodeargs=() +declare -i an=0 + +while [ "${1:0:1}" == - ]; do + nodeargs[$an]="$1" + ((an++)) + shift +done + +NODE_PATH=".:$NODE_PATH" node --stack-trace-limit=20 "${nodeargs[@]}" \ ./runner.js "$@"