From: Jim Meyering Date: Tue, 7 Feb 2017 00:36:18 +0000 (-0800) Subject: tests: avoid failure when running with no tty X-Git-Tag: v1.9~34 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=83223a0c7bbc239a4320f02fe0c9cc1006d97ec4;p=debian%2Fgzip tests: avoid failure when running with no tty * tests/help-version (zcat_setup): Export TERM=dumb, to avoid zless malfunction. Reported by Assaf Gordon in https://bugs.gnu.org/25636#8 --- diff --git a/tests/help-version b/tests/help-version index 734a24a..aa70471 100755 --- a/tests/help-version +++ b/tests/help-version @@ -155,7 +155,7 @@ dd_setup () { args=status=noxfer; } zdiff_setup () { args="$args $zin $zin2"; } zcmp_setup () { zdiff_setup; } -zcat_setup () { args="$args $zin"; } +zcat_setup () { TERM=dumb; export TERM; args="$args $zin"; } gunzip_setup () { zcat_setup; } zmore_setup () { zcat_setup; } zless_setup () { zcat_setup; }