@@ -10,13 +10,19 @@ export GCPKMS_ZONE=${GCPKMS_ZONE}
10
10
export GCPKMS_INSTANCENAME=${GCPKMS_INSTANCENAME}
11
11
export LIBMONGOCRYPT_URL=https://s3.amazonaws.com/mciuploads/libmongocrypt/debian11/master/latest/libmongocrypt.tar.gz
12
12
SKIP_SERVERS=1 bash $HERE /setup-encryption.sh
13
- tar czf /tmp/mongo-python-driver.tgz .
14
- GCPKMS_SRC=/tmp/mongo-python-driver.tgz GCPKMS_DST=$GCPKMS_INSTANCENAME : $DRIVERS_TOOLS /.evergreen/csfle/gcpkms/copy-file.sh
13
+ # Set up the remote files to test.
14
+ git add .
15
+ git commit -m " add files" || true
16
+ git archive -o /tmp/mongo-python-driver.tar HEAD
17
+ tar -rf /tmp/mongo-python-driver.tar libmongocrypt
18
+ tar -rf /tmp/mongo-python-driver.tar secrets-export.sh
19
+ gzip -f /tmp/mongo-python-driver.tar
20
+ GCPKMS_SRC=/tmp/mongo-python-driver.tar.gz GCPKMS_DST=$GCPKMS_INSTANCENAME : $DRIVERS_TOOLS /.evergreen/csfle/gcpkms/copy-file.sh
15
21
echo " Copying files ... end"
16
22
echo " Untarring file ... begin"
17
- GCPKMS_CMD=" tar xf mongo-python-driver.tgz " $DRIVERS_TOOLS /.evergreen/csfle/gcpkms/run-command.sh
23
+ GCPKMS_CMD=" tar xf mongo-python-driver.tar.gz " $DRIVERS_TOOLS /.evergreen/csfle/gcpkms/run-command.sh
18
24
echo " Untarring file ... end"
19
25
echo " Running test ... begin"
20
- GCPKMS_CMD=" rm -rf .venv .evergreen/scripts/env.sh && SUCCESS=true TEST_FLE_GCP_AUTO=1 ./.evergreen/just.sh test-eg" $DRIVERS_TOOLS /.evergreen/csfle/gcpkms/run-command.sh
26
+ GCPKMS_CMD=" SUCCESS=true TEST_FLE_GCP_AUTO=1 ./.evergreen/just.sh test-eg" $DRIVERS_TOOLS /.evergreen/csfle/gcpkms/run-command.sh
21
27
echo " Running test ... end"
22
28
bash $HERE /teardown-encryption.sh
0 commit comments