dep8 test: redirect stderr to stdout and exit with appropriate code

Bug #1021500 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tabix (Debian)
Fix Released
Unknown
tabix (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

autopkgtest of tabix 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: ----------------------------------------]

https://jenkins.qa.ubuntu.com/view/Quantal/view/AutoPkg%20Test/job/quantal-adt-tabix/3/ARCH=amd64,label=albali/artifact/results/log/*view*/

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

Excerpt from http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=blob_plain;f=doc/README.package-tests;hb=HEAD:
"""
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 message or redirect stderr to stdout and exit with an appropriate exit code.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: tabix (not installed)
ProcVersionSignature: Ubuntu 3.5.0-3.3-generic 3.5.0-rc5
Uname: Linux 3.5.0-3-generic x86_64
ApportVersion: 2.2.5-0ubuntu2
Architecture: amd64
Date: Fri Jul 6 00:06:59 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64+mac (20120328)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: tabix
UpgradeStatus: No upgrade log present (probably fresh install)

Changed in tabix (Debian):
status: Unknown → New
Changed in tabix (Debian):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tabix - 0.2.6-1git1

---------------
tabix (0.2.6-1git1) raring; urgency=low

  Upload current Debian packaging git to fix autopkgtest error.

  [ Charles Plessy ]
  b8d4e98 Indicate format to avoid stderr comment that makes autopkgtest fail.
          Closes: #680473, LP: #1021500
 -- Martin Pitt <email address hidden> Wed, 21 Nov 2012 07:55:30 +0100

Changed in tabix (Ubuntu):
status: New → Fix Released
Changed in tabix (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.