Skip to content

Commit 294bf0e

Browse files
committed
test: tar correct directories
1 parent 1ab4161 commit 294bf0e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

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

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

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

1613
if [ -z "${MONGODB_URI_SINGLE}" ]; then
1714
echo "Must specify MONGODB_URI_SINGLE"
@@ -33,11 +30,5 @@ else
3330
echo "Must specify K8S_VARIANT"
3431
exit 1
3532
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-
4233
npm run check:oidc-k8s
4334
fi

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ set -o xtrace # Write all commands first to stderr
33
set -o errexit # Exit the script with error if any of the commands fail
44

55
export K8S_DRIVERS_TAR_FILE=/tmp/node-mongodb-native.tgz
6-
tar czf $K8S_DRIVERS_TAR_FILE .
6+
cd ..
7+
tar -czf $K8S_DRIVERS_TAR_FILE src drivers-tools
8+
cd -
79
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/setup-pod.sh
810
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/run-self-test.sh
911
export K8S_TEST_CMD="DRIVERS_TOOLS=${DRIVERS_TOOLS} ENVIRONMENT=k8s ./.evergreen/${SCRIPT}"

0 commit comments

Comments
 (0)