From: Ian Jackson Date: Sat, 29 Sep 2018 10:43:24 +0000 (+0100) Subject: test suite: t-expect-fail: Set LANGUAGE too X-Git-Tag: archive/debian/7.0_pre1~66 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=1e8530a75b48e9444c3f629eea2e1414e001b76c test suite: t-expect-fail: Set LANGUAGE too The user may have this in their environment, in which case we must squash it too. Signed-off-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index ba87fbc7..a0505228 100644 --- a/tests/lib +++ b/tests/lib @@ -92,7 +92,9 @@ t-expect-fail () { local mpat="$1"; shift set +o pipefail - LC_MESSAGES=${expect_fail_lcmessages-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