log files sometimes scramble test results and stderr

Bug #1373441 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Seen in Christopher Berg's builds:

15:31:01 ======================================================================
15:31:01 FAIL: test_logfile_failure (__main__.NullRunner)
15:31:01 --log-file option, failure
15:31:01 ----------------------------------------------------------------------
15:31:01 Traceback (most recent call last):
15:31:01 File "tests/adt-run", line 618, in test_logfile_failure
15:31:01 self.assertRegex(log, 'stderr [ -]+\nI am sick\n')
15:31:01 AssertionError: Regex didn't match: 'stderr [ -]+\nI am sick\n' not found in
'[...]
test nz: - - - - - - - - - - results - - - - - - - - - -\nadt-run [13:29:27]: test nz: - - - - - - - - - - stderr - - - - - - - - - -\nnz FAIL non-zero exit status 7\nI am sick[...]\n'

I. e. the stdout/err merging into the log file is wrongly sorted.

Related branches

Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.5.3

---------------
autopkgtest (3.5.3) unstable; urgency=medium

  * ssh-setup/adb: Use the new "phablet-config network" to save/restore wifi
    connections, which also works with non-root adb.
  * Give adt-run's tee processes some time to catch up between printing
    results and stderr, to avoid scrambled logs. (LP: #1373441)
  * Fix NullRunner.test_timeout_no_output for older Python versions.
  * tests/pyflakes: Skip test if pyflakes3 is not available (for backports).
  * Bump Standards version to 3.9.6 (no changes necessary).
  * NullRunner.test_timeout_no_output: Slightly relax time bound to make
    failures less likely on loaded/slow machines.
  * Install clicks with --allow-unauthenticated to support local developer
    generated packages. (LP: #1372640)

 -- Martin Pitt <email address hidden> Sun, 28 Sep 2014 12:16:16 +0200

Changed in autopkgtest (Ubuntu):
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.