Skip to content

Commit e90fd97

Browse files
committed
Ensure that python and pip is installed for e2e and conformance tests
Signed-off-by: Tobias Giese <[email protected]>
1 parent 49ffd32 commit e90fd97

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

scripts/ci-conformance.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ cleanup() {
4545
}
4646
trap cleanup EXIT
4747

48-
# Set correct pip3.7 location for python3.
49-
if ! test -f /usr/bin/pip3.7 && test -f /usr/local/bin/pip3.7; then
50-
ln -s /usr/local/bin/pip3.7 /usr/bin/pip3.7
51-
fi
48+
# Ensure that python3-pip is installed.
49+
apt update
50+
apt install -y python3-pip
51+
rm -rf /var/lib/apt/lists/*
5252

53-
# Install requests module explicitly for HTTP calls.
54-
python3 -m pip install requests
53+
# Install/upgrade pip and requests module explicitly for HTTP calls.
54+
python3 -m pip install --upgrade pip requests
5555

5656
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5757
if [ -n "${BOSKOS_HOST:-}" ]; then

scripts/ci-e2e.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ cleanup() {
4646
}
4747
trap cleanup EXIT
4848

49-
# Set correct pip3.7 location for python3.
50-
if ! test -f /usr/bin/pip3.7 && test -f /usr/local/bin/pip3.7; then
51-
ln -s /usr/local/bin/pip3.7 /usr/bin/pip3.7
52-
fi
49+
# Ensure that python3-pip is installed.
50+
apt update
51+
apt install -y python3-pip
52+
rm -rf /var/lib/apt/lists/*
5353

54-
# Install requests module explicitly for HTTP calls.
55-
python3 -m pip install requests
54+
# Install/upgrade pip and requests module explicitly for HTTP calls.
55+
python3 -m pip install --upgrade pip requests
5656

5757
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5858
if [ -n "${BOSKOS_HOST:-}" ]; then

0 commit comments

Comments
 (0)