File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ functions:
113
113
fi
114
114
115
115
AUTH=${AUTH} SSL=${SSL} UNIFIED=${UNIFIED} MONGODB_URI="${MONGODB_URI}" \
116
- NODE_VERSION=${NODE_VERSION} SKIP_DEPS=1 bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
116
+ NODE_VERSION=${NODE_VERSION} SKIP_DEPS=1 NO_EXIT=1 \
117
+ bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
117
118
run checks :
118
119
- command : shell.exec
119
120
type : test
Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ functions:
132
132
fi
133
133
134
134
AUTH=${AUTH} SSL=${SSL} UNIFIED=${UNIFIED} MONGODB_URI="${MONGODB_URI}" \
135
- NODE_VERSION=${NODE_VERSION} SKIP_DEPS=1 bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
135
+ NODE_VERSION=${NODE_VERSION} SKIP_DEPS=1 NO_EXIT=1 \
136
+ bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
136
137
137
138
"run checks":
138
139
- command: shell.exec
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -o xtrace # Write all commands first to stderr
2
+ # set -o xtrace # Write all commands first to stderr
3
3
set -o errexit # Exit the script with error if any of the commands fail
4
4
5
5
# Supported/used environment variables:
@@ -10,17 +10,21 @@ set -o errexit # Exit the script with error if any of the commands fail
10
10
# MARCH Machine Architecture. Defaults to lowercase uname -m
11
11
# TEST_NPM_SCRIPT Script to npm run. Defaults to "test-nolint"
12
12
# SKIP_DEPS Skip installing dependencies
13
+ # NO_EXIT Don't exit early from tests that leak resources
13
14
14
15
AUTH=${AUTH:- noauth}
15
- UNIFIED=${UNIFIED:- }
16
+ UNIFIED=${UNIFIED:- 0 }
16
17
MONGODB_URI=${MONGODB_URI:- }
17
18
TEST_NPM_SCRIPT=${TEST_NPM_SCRIPT:- test-nolint}
19
+ if [[ -z " ${NO_EXIT} " ]]; then
20
+ TEST_NPM_SCRIPT=" $TEST_NPM_SCRIPT -- --exit"
21
+ fi
18
22
19
23
# ssl setup
20
24
SSL=${SSL:- nossl}
21
25
if [ " $SSL " != " nossl" ]; then
22
- export SSL_KEY_FILE=" $DRIVERS_TOOLS /.evergreen/x509gen/client.pem"
23
- export SSL_CA_FILE=" $DRIVERS_TOOLS /.evergreen/x509gen/ca.pem"
26
+ export SSL_KEY_FILE=" $DRIVERS_TOOLS /.evergreen/x509gen/client.pem"
27
+ export SSL_CA_FILE=" $DRIVERS_TOOLS /.evergreen/x509gen/ca.pem"
24
28
fi
25
29
26
30
# run tests
You can’t perform that action at this time.
0 commit comments