From: Yaroslav Halchenko Date: Thu, 7 Aug 2014 18:33:37 +0000 (-0400) Subject: ENH: slight tune up of the test X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=397e8d28db32e4c3d9ce221da519e889ef95d1d1;hp=54fc89546f03aa5efc1afcd27b4d1c0b23817a5f;p=neurodebian.git ENH: slight tune up of the test --- diff --git a/artwork/ndhackergotchi.png b/artwork/ndhackergotchi.png deleted file mode 100644 index 9f74ec5..0000000 Binary files a/artwork/ndhackergotchi.png and /dev/null differ diff --git a/tools/tests/test_neurodebian-repository-deployment b/tools/tests/test_neurodebian-repository-deployment index 0a4583a..6900417 100755 --- a/tools/tests/test_neurodebian-repository-deployment +++ b/tools/tests/test_neurodebian-repository-deployment @@ -3,6 +3,7 @@ set -ex # minimal installation with few of those packages apt_file=/etc/apt/sources.list.d/local.list +apt_nd_file=/etc/apt/sources.list.d/neurodebian.sources.list # clean up from a previous test dpkg --purge neurodebian neurodebian-keyring || : @@ -24,8 +25,8 @@ apt-get install -y --allow-unauthenticated neurodebian # Very cruel way to figure out the default release. Would fail if # options, such as multiarch, are specified after deb release=$(grep -e '^\s*deb\s' /etc/apt/sources.list | head -1 | awk '{print $3;}') -grep -E "^deb\s+http.* $release main\s*\$" /etc/apt/sources.list.d/neurodebian.sources.list -grep -E '^deb\s+http.* data main\s*$' /etc/apt/sources.list.d/neurodebian.sources.list +grep -E "^deb\s+http.* $release main\s*\$" $apt_nd_file +grep -E '^deb\s+http.* data main\s*$' $apt_nd_file # May be even retrospect stored debconf configuration apt-get install debconf-utils debconf-get-selections | grep neurodebian/release.*select.*auto @@ -35,4 +36,9 @@ apt-get update apt-cache policy | grep o=NeuroDebian,.*,n=data apt-cache policy | grep o=NeuroDebian,.*,n=$release +# Now lets remove +dpkg --purge neurodebian +[ ! -e $apt_nd_file ] +apt-cache policy | grep o=NeuroDebian && exit 1 || : + echo "I: success"