chiark / gitweb /
Test suite: Fix t-restriction-x-dgit-schroot-build in non-adt mode.
[dgit.git] / tests / lib-restricts
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
 }