diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-26 05:00:51 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-26 05:28:03 +0100 |
commit | f0b46b0422f6ce3bb7c360ee3717eef95d621526 (patch) | |
tree | 910472bbf8ce164f4ca8c07b88da2b18f82d03e6 /tests/lib-restricts | |
parent | 599ee8fbfde3786781d36944caac72353aee99e3 (diff) |
test suite: Honour DGIT_SCHROOT_CHROOT to set the schroot to use for the sbuild tests.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib-restricts')
-rw-r--r-- | tests/lib-restricts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib-restricts b/tests/lib-restricts index bb695c4..dfaaa25 100644 --- a/tests/lib-restricts +++ b/tests/lib-restricts @@ -13,6 +13,8 @@ t-restriction-x-dgit-git-only () { } t-restriction-x-dgit-schroot-build () { + # if DGIT_SCHROOT_CHROOT is set, user wants not to skip this test + if [ "x${DGIT_SCHROOT_CHROOT}" != x ]; then return 0; fi schroot -l -c build 2>&1 >/dev/null || return 1 } |