tests: fix test-setup.sh

tox doesn't have quiet option, so we have to create the virtualenv first
and run bindep manually.

Change-Id: I3ae76278391baa5cd80202f32ad88b1368b0f16d
This commit is contained in:
Mehdi Abaakouk 2016-12-14 19:17:53 +01:00
parent c805618d9a
commit 04f9be69e5
1 changed files with 6 additions and 1 deletions

View File

@ -18,8 +18,13 @@ if [ "${JOB_NAME//gate-oslo.messaging-tox-py*-func-/}" == "${JOB_NAME}" ]; then
exit 0
fi
# NOTE(sileht): we create the virtualenv only and use bindep directly
# because tox doesn't have a quiet option...
tox -ebindep --notest
# NOTE(sileht): bindep return 1 if some packages have to be installed
BINDEP_PROFILE=$(echo $JOB_NAME | cut -d- -f6)
PACKAGES=$(tox -e bindep -- -b -f bindep.txt $BINDEP_PROFILE)
PACKAGES=$(.tox/bindep/bin/bindep -b -f bindep.txt $BINDEP_PROFILE || true)
# inspired from project-config install-distro-packages.sh
if apt-get -v >/dev/null 2>&1 ; then