chiark / gitweb /
Test suite: Fix t-restriction-x-dgit-schroot-build in non-adt mode.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Aug 2015 15:01:57 +0000 (16:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Aug 2015 15:01:57 +0000 (16:01 +0100)
debian/changelog
tests/lib-restricts

index 48207defb4b213fa90a5bae1965d318a83afa0df..62c7313230f6df752176ed2ec04e0c58e3145b6a 100644 (file)
@@ -8,6 +8,7 @@ dgit (1.3~~) UNRELEASED; urgency=low
     complete_file_from_dsc.  Closes:#795736.  Also, grep the code for
     likely similar problems elsewhere and improve a (harmless) instance in
     dgit-repos-server.
+  * Test suite: Fix t-restriction-x-dgit-schroot-build in non-adt mode.
 
  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sun, 16 Aug 2015 15:15:50 +0100
 
index 43548d7a79416274ffd00a5e1861488af19f6bbc..64d56a4a023f913513a3b4571593369d09290488 100644 (file)
@@ -13,5 +13,5 @@ t-restriction-x-dgit-git-only () {
 }
 
 t-restriction-x-dgit-schroot-build () {
-       schroot -la | grep -qxF chroot:build
+       schroot -l -c build 2>&1 || return 1
 }