Skip to content

Commit 59dc792

Browse files
committed
Evergreen: Fix sourcing javaConfig.bash
JAVA-4357
1 parent 6ba562e commit 59dc792

18 files changed

+36
-19
lines changed

.evergreen/compile.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ set -o errexit # Exit the script with error if any of the commands fail
66
############################################
77
# Main Program #
88
############################################
9-
source "${BASH_SOURCE%/*}/javaConfig.bash"
9+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE[0]:-$0}")"
10+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1011

1112
echo "Compiling java driver"
1213

.evergreen/publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set -o errexit # Exit the script with error if any of the commands fail
77
############################################
88
# Main Program #
99
############################################
10-
source "${BASH_SOURCE%/*}/javaConfig.bash"
10+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
11+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1112

1213
RELEASE=${RELEASE:false}
1314

.evergreen/run-atlas-data-lake-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -o errexit # Exit the script with error if any of the commands fail
1010
############################################
1111
# Main Program #
1212
############################################
13-
source "${BASH_SOURCE%/*}/javaConfig.bash"
13+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
14+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1415

1516
echo "Running Atlas Data Lake driver tests"
1617

.evergreen/run-connectivity-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ set -o errexit
1212
############################################
1313
# Main Program #
1414
############################################
15-
source "${BASH_SOURCE%/*}/javaConfig.bash"
15+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
16+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1617

1718
echo "Running connectivity tests with Java ${JAVA_VERSION}"
1819

.evergreen/run-gssapi-auth-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ set -o errexit # Exit the script with error if any of the commands fail
1515
############################################
1616
# Main Program #
1717
############################################
18-
source "${BASH_SOURCE%/*}/javaConfig.bash"
18+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
19+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1920

2021
echo "Running GSSAPI authentication tests"
2122

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -o errexit # Exit the script with error if any of the commands fail
1010
############################################
1111
# Main Program #
1212
############################################
13-
source "${BASH_SOURCE%/*}/javaConfig.bash"
13+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
14+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1415
echo "Running KMS TLS tests"
1516

1617
cp ${JAVA_HOME}/lib/security/cacerts mongo-truststore

.evergreen/run-load-balancer-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ MONGODB_URI=${MONGODB_URI:-}
1717
############################################
1818
# Main Program #
1919
############################################
20-
source "${BASH_SOURCE%/*}/javaConfig.bash"
20+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
21+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
2122

2223
if [ "$SSL" != "nossl" ]; then
2324
# We generate the keystore and truststore on every run with the certs in the drivers-tools repo

.evergreen/run-mmapv1-storage-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -o errexit # Exit the script with error if any of the commands fail
1010
############################################
1111
# Main Program #
1212
############################################
13-
source "${BASH_SOURCE%/*}/javaConfig.bash"
13+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
14+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1415

1516
echo "Running MMAPv1 Storage Test"
1617

.evergreen/run-mongodb-aws-ecs-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ set -o errexit # Exit the script with error if any of the commands fail
1212
############################################
1313
# Main Program #
1414
############################################
15-
source "${BASH_SOURCE%/*}/javaConfig.bash"
15+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
16+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1617

1718
if [[ -z "$1" ]]; then
1819
echo "usage: $0 <MONGODB_URI>"

.evergreen/run-mongodb-aws-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -o errexit # Exit the script with error if any of the commands fail
1010
############################################
1111
# Main Program #
1212
############################################
13-
source "${BASH_SOURCE%/*}/javaConfig.bash"
13+
RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")"
14+
. "${RELATIVE_DIR_PATH}/javaConfig.bash"
1415

1516
echo "Running MONGODB-AWS authentication tests"
1617

0 commit comments

Comments
 (0)