X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib;h=a050522890c49fe8bed8076c7584a7ac2dfcc314;hb=d98b7653e23426cdfe91f6892c2a2f1c21481cd0;hp=eb34c6b5d8c4a3dc4478fe74d78391398ae788d4;hpb=d9877edebfab51dcfcb0ee914f366de87ceefaf2;p=dgit.git diff --git a/tests/lib b/tests/lib index eb34c6b5..a0505228 100644 --- a/tests/lib +++ b/tests/lib @@ -92,7 +92,9 @@ t-expect-fail () { local mpat="$1"; shift set +o pipefail - LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output + LC_MESSAGES=${expect_fail_lcmessages-C} \ + LANGUAGE=${expect_fail_lcmessages-C} \ + "$@" 2>&1 | tee $tmp/t.output local ps="${PIPESTATUS[*]}" set -o pipefail @@ -404,6 +406,13 @@ t-git-fsck () { esac } +t-check-only-bpd () { + if [ "$bpd" = .. ]; then return; fi + t-files-notexist \ + $tmp/*.{deb,changes,dsc,buildinfo} \ + $tmp/*.{tar,diff}.* +} + t-fscks () { ( shopt -s nullglob @@ -416,6 +425,7 @@ t-fscks () { t-ok () { : '========================================' + t-check-only-bpd t-fscks t-save-artifacts echo ok.