Skip to content

Commit e140c13

Browse files
Emily Giurleop
authored andcommitted
set $HOME if it doesnt already exist (#1571)
1 parent 7e4e73b commit e140c13

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.evergreen/functions.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ host_arch() {
2929
echo $arch
3030
}
3131

32+
set_home() {
33+
if test -z "$HOME"; then
34+
export HOME=$(pwd)
35+
fi
36+
}
37+
3238
set_fcv() {
3339
if test -n "$FCV"; then
3440
mongo --eval 'assert.commandWorked(db.adminCommand( { setFeatureCompatibilityVersion: "'"$FCV"'" } ));' "$MONGODB_URI"

.evergreen/run-local-tls-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ set -o errexit # Exit the script with error if any of the commands fail
1515

1616
. `dirname "$0"`/functions.sh
1717

18+
set_home
1819
set_fcv
1920
set_env_vars
2021

.evergreen/run-tests-mlaunch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ set -o errexit # Exit the script with error if any of the commands fail
1515

1616
. `dirname "$0"`/functions.sh
1717

18+
set_home
1819
set_fcv
1920
set_env_vars
2021

0 commit comments

Comments
 (0)