diff options
author | Zuul <zuul@review.openstack.org> | 2017-12-11 09:39:31 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-12-11 09:39:31 +0000 |
commit | 63775d9e97078b41382697989eaf910d0209fa8b (patch) | |
tree | 74bdd73b054ba26ee489141ab0d8eb362f4bd2a0 /tools | |
parent | ac5e20ff2d830277d304ff2a74c9b92c7d07614c (diff) | |
parent | 0ca9567c4a6ab793dc50e5d45514fe12d2282419 (diff) | |
download | oslo-messaging-63775d9e97078b41382697989eaf910d0209fa8b.tar.gz |
Merge "Provide bindep_profile in openstack-tox job setup"
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-setup.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh index b2fffb5..0d49f7f 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -4,7 +4,7 @@ # it sets up the test system as needed. # Developer should setup their test systems in a similar way. -# This setup needs to be run by a user that can run sudo. +# This setup for amqp1 needs to be run by a user that can run sudo. function is_fedora { [ -f /usr/bin/yum ] && cat /etc/*release | grep -q -e "Fedora" @@ -14,14 +14,12 @@ function is_fedora { # because tox doesn't have a quiet option... tox -ebindep --notest -# TODO(kgiusti) for now install all profile deps, need to fix this to -# install only the deps needed by the particular test's profile -PROFILES="rabbit zmq amqp1" -PACKAGES= -for PROFILE in $PROFILES; do - # NOTE(sileht): bindep return 1 if some packages have to be installed - PACKAGES="$PACKAGES $(.tox/bindep/bin/bindep -b -f bindep.txt $PROFILE || true)" -done +# TODO(ansmith) for now setup amqp1 dependencies for any profile. +# Fix this when test-setup is passed environment profile setting. + +# NOTE(sileht): bindep return 1 if some packages have to be installed +PACKAGES="$(.tox/bindep/bin/bindep -b -f bindep.txt amqp1 || true)" + [ -n "$PACKAGES" ] || exit 0 # inspired from project-config install-distro-packages.sh |