Bug#784175: libterm-twiddle-perl: autopkgtest failure: test suite warning when TERM is unset

gregor herrmann gregoa at debian.org
Mon May 4 15:56:29 UTC 2015


On Sun, 03 May 2015 22:30:31 +0300, Niko Tyni wrote:

> The test suite warns when TERM is set, as is apparently the case on
> ci.debian.net. Proposed patch attached.

Not set, I suppose.
 
> Excerpt from the test log:
> 
>   adt-run [08:46:23]: test auto-build-deps: /usr/share/pkg-perl-autopkgtest/runner build-deps
>   adt-run [08:46:23]: test auto-build-deps: [-----------------------
>   Nothing to prove, skipping.
>   1..13
>   # Running under perl version 5.020002 for linux
>   # Current time local: Fri Apr 24 08:46:23 2015
>   # Current time GMT:   Fri Apr 24 08:46:23 2015
>   # Using Test.pm version 1.26
>   ok 1
>   tput: No value for $TERM and no -T specified
>   ok 2
>   ok 3
>   ok 4
>   ok 5
>   ok 6
>   ok 7
>   ok 8
>   ok 9
>   ok 10
>   ok 11
>   ok 12
>   ok 13
>   adt-run [08:46:23]: test auto-build-deps: -----------------------]
>   adt-run [08:46:23]: test auto-build-deps:  - - - - - - - - - - results - - - - - - - - - -
>   auto-build-deps      FAIL stderr: tput: No value for $TERM and no -T specified
>   adt-run [08:46:23]: test auto-build-deps:  - - - - - - - - - - stderr - - - - - - - - - -
>   tput: No value for $TERM and no -T specified

Here (with cowbuilder) it fails differently, as TERM is set but
unknown:

adt-run [17:35:21]: test command1: /usr/share/pkg-perl-autopkgtest/runner build-deps
adt-run [17:35:21]: test command1: [-----------------------
Nothing to prove, skipping.
1..13
# Running under perl version 5.020002 for linux
# Current time local: Mon May  4 15:35:21 2015
# Current time GMT:   Mon May  4 15:35:21 2015
# Using Test.pm version 1.26
ok 1
tput: unknown terminal "rxvt-unicode-256color"
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
adt-run [17:35:21]: test command1: -----------------------]
adt-run [17:35:21]: test command1:  - - - - - - - - - - results - - - - - - - - - -
command1             FAIL stderr: tput: unknown terminal "rxvt-unicode-256color"
adt-run [17:35:21]: test command1:  - - - - - - - - - - stderr - - - - - - - - - -
tput: unknown terminal "rxvt-unicode-256color"


Looks like we need a different solution to cover both cases; looking
the code, tput is only called if Term::Size is not found.

And indeed, adding libterm-size-perl to B-D-I gets rid of the the
tput (call and) warning.
 

Cheers,
gregor, uploading shortly
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Bob Dylan: Visions of Johanna
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150504/c7ee8830/attachment.sig>


More information about the pkg-perl-maintainers mailing list