Skip to content

Commit ae496bc

Browse files
authored
CSHARP-4074: Call cleanup-test-resources.sh regardless tests results (#1740)
1 parent ef761ea commit ae496bc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

evergreen/evergreen.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ functions:
395395
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
396396
evergreen/run-tests.sh
397397
echo "Skipping certificate removal..."
398-
OS=${OS} \
399-
evergreen/cleanup-test-resources.sh
400398
401399
run-csfle-with-mocked-kms-tests:
402400
- command: shell.exec
@@ -421,8 +419,6 @@ functions:
421419
TARGET="TestCsfleWithMockedKms" \
422420
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
423421
evergreen/run-tests.sh
424-
OS=${OS} \
425-
evergreen/cleanup-test-resources.sh
426422
427423
run-csfle-with-mongocryptd-tests:
428424
- command: shell.exec
@@ -449,8 +445,6 @@ functions:
449445
CRYPT_SHARED_LIB_PATH="" \
450446
evergreen/run-tests.sh
451447
echo "Skipping certificate removal..."
452-
OS=${OS} \
453-
evergreen/cleanup-test-resources.sh
454448
455449
run-atlas-connectivity-tests:
456450
- command: shell.exec
@@ -831,6 +825,14 @@ functions:
831825
mongo-orchestration stop
832826
cd -
833827
rm -rf $DRIVERS_TOOLS || true
828+
- command: subprocess.exec
829+
params:
830+
binary: bash
831+
working_dir: mongo-csharp-driver
832+
include_expansions_in_env:
833+
- "OS"
834+
args:
835+
- evergreen/cleanup-test-resources.sh
834836

835837
fix-absolute-paths:
836838
- command: shell.exec

0 commit comments

Comments
 (0)