Use "bindep test"

For testing purposes use the "test" profile to install packages. This
installs also any packages that have no selector.

Change-Id: Ia1890185d2cded484de5ceb6a4b4001510aa33da
This commit is contained in:
Andreas Jaeger
2016-05-10 15:43:07 +02:00
parent fe57e4fa0e
commit 0182437c5a

View File

@@ -26,11 +26,12 @@ fi
# an install loop, retrying to check that all requested packages are obtained # an install loop, retrying to check that all requested packages are obtained
try=0 try=0
until $BINDEP -b -f $PACKAGES ; do # Install test profile using bindep
until $BINDEP -b -f $PACKAGES test; do
if [ $try -gt 2 ] ; then if [ $try -gt 2 ] ; then
set +x set +x
echo -e "\nERROR: These requested packages were not installed:\n" \ echo -e "\nERROR: These requested packages were not installed:\n" \
"\n`$BINDEP -b -f $PACKAGES`\n" 1>&2 "\n`$BINDEP -b -f $PACKAGES test`\n" 1>&2
set -x set -x
exit 1 exit 1
fi fi
@@ -41,10 +42,10 @@ until $BINDEP -b -f $PACKAGES ; do
sudo apt-get -qq update sudo apt-get -qq update
sudo PATH=/usr/sbin:/sbin:$PATH DEBIAN_FRONTEND=noninteractive \ sudo PATH=/usr/sbin:/sbin:$PATH DEBIAN_FRONTEND=noninteractive \
apt-get -q --option "Dpkg::Options::=--force-confold" \ apt-get -q --option "Dpkg::Options::=--force-confold" \
--assume-yes install `$BINDEP -b -f $PACKAGES` --assume-yes install `$BINDEP -b -f $PACKAGES test`
else else
sudo PATH=/usr/sbin:/sbin:$PATH $YUM install -y \ sudo PATH=/usr/sbin:/sbin:$PATH $YUM install -y \
`$BINDEP -b -f $PACKAGES` `$BINDEP -b -f $PACKAGES test`
fi fi
set -e set -e