Skip to content

Commit 1ab4161

Browse files
committed
test: check if in pod to reinit
1 parent 138518b commit 1ab4161

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.evergreen/run-oidc-prose-tests.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ source ./.evergreen/prepare-shell.sh
88

99
ENVIRONMENT=${ENVIRONMENT:-"test"}
1010
PROJECT_DIRECTORY=${PROJECT_DIRECTORY:-"."}
11-
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
11+
12+
if [ -n "${K8S_VARIANT}" ]; then
13+
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
14+
fi
1215

1316
if [ -z "${MONGODB_URI_SINGLE}" ]; then
1417
echo "Must specify MONGODB_URI_SINGLE"
@@ -30,5 +33,11 @@ else
3033
echo "Must specify K8S_VARIANT"
3134
exit 1
3235
fi
36+
37+
# Since this is running in a pod, we need to ensure Node is installed properly.
38+
source $DRIVERS_TOOLS/.evergreen/install-node.sh
39+
npm install "${NPM_OPTIONS}"
40+
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
41+
3342
npm run check:oidc-k8s
3443
fi

0 commit comments

Comments
 (0)