File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ cp ${PROJECT_DIRECTORY}/test/certificates/* ${DRIVERS_TOOLS}/.evergreen/x509gen/
7
7
# Replace MongoOrchestration's client certificate.
8
8
cp ${PROJECT_DIRECTORY} /test/certificates/client.pem ${MONGO_ORCHESTRATION_HOME} /lib/client.pem
9
9
10
- # Ensure hatch is installed.
11
- bash ${PROJECT_DIRECTORY} /.evergreen/scripts/ensure-hatch.sh
12
-
13
10
if [ -w /etc/hosts ]; then
14
11
SUDO=" "
15
12
else
Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
5
+ HERE=$( dirname ${BASH_SOURCE:- $0 } )
6
+ pushd " $( dirname " $( dirname $HERE ) " ) " > /dev/null
7
+
5
8
# Ensure hatch is available.
6
9
if [ ! -x " $( command -v hatch) " ]; then
7
10
# Install a virtual env with "hatch"
@@ -53,3 +56,4 @@ if [ ! -x "$(command -v hatch)" ]; then
53
56
echo " Installing hatch... done."
54
57
fi
55
58
hatch --version
59
+ popd > /dev/null
Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ if [ -z "$1" ]
8
8
fi
9
9
10
10
target=$1
11
+ remote_dir=/home/ec2-user/mongo-python-driver
11
12
12
13
echo " Copying files to $target ..."
13
- rsync -az -e ssh --exclude ' .git' --filter=' :- .gitignore' -r . $target :/home/ec2-user/mongo-python-driver
14
+ rsync -az -e ssh --exclude ' .git' --filter=' :- .gitignore' -r . $target :$remote_dir
14
15
echo " Copying files to $target ... done"
15
16
16
- ssh $target /home/ec2-user/mongo-python-driver/.evergreen/scripts/setup-system.sh
17
+ ssh $target $remote_dir /.evergreen/scripts/setup-system.sh
18
+ ssh $target " PYTHON_BINARY=${PYTHON_BINARY:- } $remote_dir /.evergreen/scripts/ensure-hatch.sh"
You can’t perform that action at this time.
0 commit comments