Skip to content

Commit fb72f2c

Browse files
committed
kafkatest: speed up client deploy
1 parent 061d08b commit fb72f2c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

confluent_kafka/kafkatest/deploy.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ function setup_virtualenv {
7272
echo "Installing and creating virtualenv"
7373
which virtualenv || sudo apt-get install -y python-virtualenv
7474
virtualenv $DIR/venv
75+
# Upgrade pip
76+
pip install -U pip
7577
else
7678
echo "Reusing existing virtualenv"
7779
fi
7880
source $DIR/venv/bin/activate
79-
# Upgrade pip
80-
pip install -U pip
8181

8282
}
8383

@@ -113,9 +113,13 @@ setup_virtualenv
113113
# librdkafka is bundled with the wheel, if not, install it here:
114114
#install_librdkafka
115115

116-
install_client
117-
118-
verify_client
116+
if ! verify_client ; then
117+
echo "Client not installed, installing..."
118+
install_client
119+
verify_client
120+
else
121+
echo "Client already installed"
122+
fi
119123

120124

121125

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy