Skip to content

Commit 9642431

Browse files
committed
test: use bash instead of sh for evergreen scripts
1 parent e8d7547 commit 9642431

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.evergreen/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ functions:
7676
params:
7777
script: |
7878
${PREPARE_SHELL}
79-
MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
79+
MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
8080
- command: expansions.update
8181
params:
8282
file: mo-expansion.yml
@@ -87,7 +87,7 @@ functions:
8787
working_dir: src
8888
script: |
8989
${PREPARE_SHELL}
90-
AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
90+
AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
9191
cleanup:
9292
- command: shell.exec
9393
params:
@@ -117,7 +117,7 @@ functions:
117117
working_dir: src
118118
script: |
119119
${PREPARE_SHELL}
120-
NODE_LTS_NAME=${NODE_LTS_NAME} sh ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
120+
NODE_LTS_NAME=${NODE_LTS_NAME} bash ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
121121
run atlas tests:
122122
- command: shell.exec
123123
type: test
@@ -128,7 +128,7 @@ functions:
128128
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
129129
130130
NODE_LTS_NAME='${NODE_LTS_NAME}' ATLAS_REPL='${atlas_repl}' ATLAS_SHRD='${atlas_shrd}'
131-
ATLAS_FREE='${atlas_free}' ATLAS_TLS11='${atlas_tls11}' ATLAS_TLS12='${atlas_tls12}' sh
131+
ATLAS_FREE='${atlas_free}' ATLAS_TLS11='${atlas_tls11}' ATLAS_TLS12='${atlas_tls12}' bash
132132
${PROJECT_DIRECTORY}/.evergreen/run-atlas-tests.sh
133133
pre:
134134
- func: fetch source

.evergreen/install-dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
# 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

.evergreen/run-atlas-tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -o errexit # Exit the script with error if any of the commands fail
44

@@ -7,4 +7,4 @@ NODE_ARTIFACTS_PATH="${PROJECT_DIRECTORY}/node-artifacts"
77
export NVM_DIR="${NODE_ARTIFACTS_PATH}/nvm"
88
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
99

10-
ATLAS_REPL="$ATLAS_REPL" ATLAS_SHRD="$ATLAS_SHRD" ATLAS_FREE="$ATLAS_FREE" ATLAS_TLS11="$ATLAS_TLS11" ATLAS_TLS12="$ATLAS_TLS12" npm run atlas
10+
ATLAS_REPL="$ATLAS_REPL" ATLAS_SHRD="$ATLAS_SHRD" ATLAS_FREE="$ATLAS_FREE" ATLAS_TLS11="$ATLAS_TLS11" ATLAS_TLS12="$ATLAS_TLS12" npm run atlas

.evergreen/run-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
# 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

0 commit comments

Comments
 (0)