]> git.donarmstrong.com Git - neurodebian.git/commitdiff
ENH: slight tune up of the test
authorYaroslav Halchenko <debian@onerussian.com>
Thu, 7 Aug 2014 18:33:37 +0000 (14:33 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Thu, 7 Aug 2014 18:33:37 +0000 (14:33 -0400)
artwork/ndhackergotchi.png [deleted file]
tools/tests/test_neurodebian-repository-deployment

diff --git a/artwork/ndhackergotchi.png b/artwork/ndhackergotchi.png
deleted file mode 100644 (file)
index 9f74ec5..0000000
Binary files a/artwork/ndhackergotchi.png and /dev/null differ
index 0a4583ab137d32cc1fda62b78b76b6d3996f3211..690041701e6b11a2f9377d9c00becd8a75fd2bb0 100755 (executable)
@@ -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"