Merge "Cleanup comments and error message in setup_env"
This commit is contained in:
commit
165026d771
10
setup_env
10
setup_env
@ -9,7 +9,7 @@ function usage {
|
||||
echo "Usage: ${SCRIPT_NAME} [OPTION]..."
|
||||
echo "Setup RefStack client with test environment"
|
||||
echo ""
|
||||
echo " -h, Print this usage message"
|
||||
echo " -h Print this usage message"
|
||||
echo " -c Tempest test runner commit. You can specify SHA or branch here"
|
||||
echo " -t Tempest test runner tag. You can specify tag here"
|
||||
echo " If no commit or tag is specified, tempest will be install from commit"
|
||||
@ -76,7 +76,7 @@ elif [ -n "$(command) -v zypper" ]; then
|
||||
fi
|
||||
sudo zypper --non-interactive install git
|
||||
else
|
||||
echo "Neither apt-get nor yum nor zypper found"
|
||||
echo "Neither apt-get, nor yum, nor zypper found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ WORKDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# Checkout tempest on specified tag
|
||||
if [ -d "${WORKDIR}/.tempest" ]; then
|
||||
while true; do
|
||||
read -p "Installed tempest found.We should remove it. All data from previouse test runs will be deleted. Continue (y/n) ?" yn
|
||||
read -p "Existing tempest installation found. We should remove it. All data from previous test runs will be deleted. Continue (y/n) ?" yn
|
||||
case ${yn} in
|
||||
[Yy]* ) rm -rf ${WORKDIR}/.tempest; break;;
|
||||
[Nn]* ) exit 1;;
|
||||
@ -110,7 +110,7 @@ elif [ -n "$(command) -v zypper" ]; then
|
||||
# For zypper-based distributions (openSuSe, SELS)
|
||||
sudo zypper --non-interactive install curl wget tar unzip make python-devel.x86_64 gcc gcc-c++ libffi-devel libxml2-devel zlib-devel libxslt-devel libopenssl-devel python-xml
|
||||
else
|
||||
echo "Neither apt-get nor yum nor zypper found"
|
||||
echo "Neither apt-get, nor yum, nor zypper found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -151,5 +151,5 @@ rm virtualenv-${VENV_VERSION}.tar.gz
|
||||
${WORKDIR}/.venv/bin/pip install -r ${WORKDIR}/requirements.txt
|
||||
${WORKDIR}/.tempest/.venv/bin/pip install -r ${WORKDIR}/.tempest/requirements.txt
|
||||
|
||||
# add additional packages to find more tests by tempest
|
||||
# Add additional packages to find more tests by tempest
|
||||
${WORKDIR}/.tempest/.venv/bin/pip install -r ${WORKDIR}/tempest-additional-requirements.txt
|
||||
|
Loading…
Reference in New Issue
Block a user