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 48207de..62c7313 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 43548d7..64d56a4 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
 }