From 08601da9613f2c9fa3a6d7c316637852f401fe0f Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Mon, 11 Nov 2019 08:10:54 -0500 Subject: [PATCH] Move CHROME_BIN envvar inside TEST_COMMAND karma-chrome-launcher needs to be told where to find Chromium if that's installed rather than Chrome. And because the tests are run with 'su - ' that env variable definition has to be put inside both TEST_COMMAND definitions. Signed-off-by: Jason Boyer --- installer/stretch/eg_stretch_installer.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installer/stretch/eg_stretch_installer.sh b/installer/stretch/eg_stretch_installer.sh index 43aae4682..578ab6451 100755 --- a/installer/stretch/eg_stretch_installer.sh +++ b/installer/stretch/eg_stretch_installer.sh @@ -288,9 +288,6 @@ function init_variables { echo "NODEJS_BINARY=$NODEJS_BINARY" echo "NODEJS_VERSION=$NODEJS_VERSION" - # to fix hopefully fix an npm ELIFECYCLE error - export CHROME_BIN=/usr/bin/chromium - echo End of intializing installer =~-._ } @@ -669,6 +666,7 @@ function eg_angularjs_web_build { date TEST_COMMAND=' cd /home/test/Evergreen/Open-ILS/web/js/ui/default/staff/ ; + export CHROME_BIN=/usr/bin/chromium echo Running npm install: ; npm install ; echo Return Value = $? ; @@ -689,6 +687,7 @@ function eg_angular_web_build { date TEST_COMMAND=' cd /home/test/Evergreen/Open-ILS/src/eg2/ ; + export CHROME_BIN=/usr/bin/chromium echo Running npm install: ; npm install ; echo Return Value = $? ; -- 2.11.0