From 1369535d036f2b3d9874569a40a0d5db3f6db1d9 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Wed, 29 Jun 2016 18:45:13 +0200 Subject: [PATCH] always use local karma --- autotest-js.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/autotest-js.sh b/autotest-js.sh index 2d8552811c..475a61df59 100755 --- a/autotest-js.sh +++ b/autotest-js.sh @@ -22,19 +22,7 @@ fi # update/install test packages mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3 -KARMA="$(which karma 2>/dev/null)" - -# If not installed globally, try local version -if test -z "$KARMA" -then - KARMA="$PREFIX/node_modules/karma/bin/karma" -fi - -if test -z "$KARMA" -then - echo 'Karma module executable not found' >&2 - exit 2 -fi +KARMA="$PREFIX/node_modules/karma/bin/karma" NODE_PATH='build/node_modules' KARMA_TESTSUITE="$1" $KARMA start tests/karma.config.js --single-run