Skip to content

Commit fdfb7d5

Browse files
committed
PYTHON-5415 - Unskip tests that rely on server hostname
1 parent 65f7c54 commit fdfb7d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.evergreen/scripts/setup-system.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ if [ "$(uname -s)" = "Darwin" ]; then
3838
fi
3939
fi
4040

41+
if [ -w /etc/hosts ]; then
42+
SUDO=""
43+
else
44+
SUDO="sudo"
45+
fi
46+
47+
# Add 'server' and 'hostname_not_in_cert' as a hostnames
48+
echo "127.0.0.1 server" | $SUDO tee -a /etc/hosts
49+
echo "127.0.0.1 hostname_not_in_cert" | $SUDO tee -a /etc/hosts
50+
4151
echo "Setting up system... done."

0 commit comments

Comments
 (0)