From b162485e96d9977f4ec776be284f12857976ce60 Mon Sep 17 00:00:00 2001 From: Adam Kolodziejczyk Date: Fri, 22 Nov 2024 13:00:52 +0100 Subject: [PATCH] fix junit --- ci/container/test_authentication.sh | 6 ++++-- ci/test_authentication.sh | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/container/test_authentication.sh b/ci/container/test_authentication.sh index d4a608b41..ca9f2333e 100755 --- a/ci/container/test_authentication.sh +++ b/ci/container/test_authentication.sh @@ -2,9 +2,11 @@ set -o pipefail +export PATH=./node_modules/.bin:$PATH +export WORKSPACE=${WORKSPACE:-/mnt/workspace} + AUTH_PARAMETER_FILE=./.github/workflows/parameters_aws_auth_tests.json eval $(jq -r '.authtestparams | to_entries | map("export \(.key)=\(.value|tostring)")|.[]' $AUTH_PARAMETER_FILE) -export PATH=./node_modules/.bin:$PATH npm install -mocha --exit -timeout 180000 --reporter xunit --reporter-options output=$WORKSPACE/junit-auth.xml --reporter spec --recursive --full-trace test/authentication/**/*.js test/authentication/*.js +mocha --exit -timeout 180000 --reporter xunit --reporter-options output=$WORKSPACE/junit-auth.xml --recursive --full-trace test/authentication/**/*.js test/authentication/*.js diff --git a/ci/test_authentication.sh b/ci/test_authentication.sh index f554498fc..19aa2c210 100755 --- a/ci/test_authentication.sh +++ b/ci/test_authentication.sh @@ -9,7 +9,6 @@ gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" --output $ docker run \ -v $(cd $THIS_DIR/.. && pwd):/mnt/host \ -v $WORKSPACE:/mnt/workspace \ - -e WORKSPACE \ --rm \ nexus.int.snowflakecomputing.com:8086/docker/snowdrivers-test-external-browser:1 \ "/mnt/host/ci/container/test_authentication.sh"