File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -222,18 +222,6 @@ functions:
222
222
${PREPARE_SHELL}
223
223
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
224
224
225
- " run atlas connectivity tests " :
226
- - command : shell.exec
227
- type : test
228
- params :
229
- working_dir : " src"
230
- shell : bash
231
- script : |
232
- ${PREPARE_SHELL}
233
- . ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
234
- TESTS="tests/atlas.phpt" \
235
- bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
236
-
237
225
" cleanup " :
238
226
- command : shell.exec
239
227
params :
Original file line number Diff line number Diff line change 2
2
- name : " test-atlas-connectivity"
3
3
tags : ["atlas", "nodb"]
4
4
commands :
5
- - func : " run atlas connectivity tests"
5
+ # This creates secrets-export.sh, which is later sourced by run-tests.sh
6
+ - command : shell.exec
7
+ params :
8
+ working_dir : " src"
9
+ script : |
10
+ bash ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
11
+ - func : " run tests"
12
+ vars :
13
+ TESTS : " tests/atlas.phpt"
6
14
7
15
# Test different storage engines
8
16
- name : " test-mongodb-4.0-standalone-inmemory"
Original file line number Diff line number Diff line change 39
39
echo " crypt_shared library will be loaded from path: $CRYPT_SHARED_LIB_PATH "
40
40
fi
41
41
42
+ # Conditionally source setup-secrets.sh created by drivers-evergreen-tools
43
+ if [ -f " ${PROJECT_DIRECTORY} /secrets-export.sh" ]; then
44
+ source ${PROJECT_DIRECTORY} /secrets-export.sh
45
+ fi
46
+
42
47
echo " Running tests with URI: $MONGODB_URI "
43
48
44
49
# Run the tests, and store the results in a junit result file
You can’t perform that action at this time.
0 commit comments