[Debian-med-packaging] Bug#680473: dep8 test failed with message on stderr

Jean-Baptiste Lallement jean-baptiste at ubuntu.com
Fri Jul 6 07:39:08 UTC 2012


Package: tabix
Version: 0.2.6-1


autopkgtest of tabix [1] currently fails with:
"""
adt-run: trace: & dsc0t-with-example-data:  - - - - - - - - - - results 
- - - - - - - - - -
dsc0t-with-example-data FAIL status: 0, stderr: [tabix] The file type 
not recognise...
adt-run: trace: & dsc0t-with-example-data:  - - - - - - - - - - stderr - 
- - - - - - - - -
[tabix] The file type not recognised and -p not given, using the preset 
[gff].
adt-run: trace: & dsc0t-with-example-data: 
----------------------------------------]
"""


This is because the warning is written to stderr while per specification 
of DEP8 it should be written to stdout.

Excerpt from from DEP8 specification [2]
"""
Each test program should, on success, exit with status 0 and print 
nothing to stderr; if a test exits nonzero, or prints to stderr, it is 
considered to have failed.
"""

The dep8 test should be updated either to use the option -p of tabix to 
fix the warning/error or redirect stderr to stdout and exit with an 
appropriate exit code if the message is expected.

[1] 
https://jenkins.qa.ubuntu.com/view/Quantal/view/AutoPkg%20Test/job/quantal-adt-tabix/3/ARCH=amd64,label=albali/artifact/results/log/*view*/
[2] 
http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=blob_plain;f=doc/README.package-tests;hb=HEAD:

-- 
Jean-Baptiste
irc: jibel





More information about the Debian-med-packaging mailing list