Your message dated Tue, 01 Nov 2016 21:33:45 +0000
with message-id <[email protected]>
and subject line Bug#842302: fixed in autopkgtest 4.2
has caused the Debian Bug report #842302,
regarding autopkgtest: source_rules_command failure message is unclear
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
842302: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842302
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autopkgtest
Version: 4.1
Severity: minor
Tags: patch

While testing a package (sorry, I don't remember how to reproduce this)
I got a failure from source_rules_command(), in which 3 lines of results
were apparently expected but 4 were received, or possibly the other way
round. This is an unhelpful message, because it didn't tell me what the
4 lines that were received *were*.

The attached patch makes this somewhat easier to diagnose.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autopkgtest depends on:
ii  apt-utils       1.3.1
ii  libdpkg-perl    1.18.10
ii  procps          2:3.3.12-2
ii  python3         3.5.1-4
ii  python3-debian  0.1.29

Versions of packages autopkgtest recommends:
ii  autodep8  0.8

Versions of packages autopkgtest suggests:
pn  lxc          <none>
pn  lxd-client   <none>
ii  qemu-system  1:2.7+dfsg-1
ii  qemu-utils   1:2.7+dfsg-1
ii  schroot      1.6.10-2+b1

-- no debconf information
>From f74c875b2d0b4c8ed858762ee8548b372453ce03 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Thu, 27 Oct 2016 15:01:02 +0100
Subject: [PATCH 1/5] source_rules_command: log the result we got if it is not
 as expected

Signed-off-by: Simon McVittie <[email protected]>
---
 runner/autopkgtest | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runner/autopkgtest b/runner/autopkgtest
index 873acbe..0753910 100755
--- a/runner/autopkgtest
+++ b/runner/autopkgtest
@@ -288,8 +288,8 @@ def source_rules_command(script, which, cwd=None, results_lines=0):
         else:
             adtlog.badpkg('rules %s failed with exit code %d' % (which, rc))
     if results_lines is not None and len(results) != results_lines:
-        adtlog.badpkg('got %d lines of results from %s where %d expected'
-                      % (len(results), which, results_lines))
+        adtlog.badpkg('got %d lines of results from %s where %d expected: %r'
+                      % (len(results), which, results_lines, results))
     if results_lines == 1:
         return results[0]
     return results
-- 
2.10.1


--- End Message ---
--- Begin Message ---
Source: autopkgtest
Source-Version: 4.2

We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Pitt <[email protected]> (supplier of updated autopkgtest package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 01 Nov 2016 23:12:55 +0200
Source: autopkgtest
Binary: autopkgtest
Architecture: source all
Version: 4.2
Distribution: unstable
Urgency: medium
Maintainer: Autopkgtest team <[email protected]>
Changed-By: Martin Pitt <[email protected]>
Description:
 autopkgtest - automatic as-installed testing for Debian packages
Closes: 842091 842299 842300 842302
Changes:
 autopkgtest (4.2) unstable; urgency=medium
 .
   [ Martin Pitt ]
   * ssh: Fix result of tests that break the testbed. (LP: #1630578)
   * qemu: Fix user/password login mode without a ttyS1 root shell.
      - Concatenate bytes with each other, not a str to a byte.
      - Sync/flush console after sending password and ttyS1 shell command, wait
        until login is complete before continuing.
      - Send password to sudo for ttyS1 shell command, to also work with
        password-requiring sudo. (LP: #1630963)
   * qemu: Fix reboot in user/password login mode.
   * ssh: Add --capability option.
     This is useful to run tests which require an isolation level or have
     breaks-testbed without a setup script.
   * autopkgtest-build-lxd: Ask "lxc profile" for default bridge instead of
     /etc/default/lxd-bridge. The latter went away in recent LXD versions, and
     "lxc profile show default" also works in earlier versions.
   * Make --apt-upgrade consider a "404" error as test failure.
     Previously all errors from "apt-get update" were considered temporary
     failures, i. e. the setup command always exited with 1. But if we specify
     e. g. a nonexisting release from a distro or a PPA, this won't just go
     away by itself -- we want the test to actually fail instead of getting
     stuck in an eternal "retry on temporary failures" loop.
   * schroot: Don't fail on stderr of schroot as long as it succeeds.
     (LP: #1637898)
   * qemu: Hide detected udev file system properties on /dev/baseimage.
     (Closes: #842299)
 .
   [ Simon McVittie ]
   * VirtSubproc: open arbitrary files in binary mode.
   * VirtSubproc: if check_exec status is nonzero, include stderr in message.
   * qemu: put the shared directory in /run. If the virtual machine's root
     filesystem is read-only, we won't be able to create /autopkgtest.
   * qemu: Move eofcat into /tmp. This avoids having to write it to /bin, which
     might be read-only.  Re-create eofcat on every boot for this.
   * source_rules_command: log the result we got if it is not as expected
     (Closes: #842302)
   * Add 'needs-reboot' restriction. This allows tests to be explicit about
     needing to reboot the machine, rather than assuming that
     'isolation-machine' is enough. It is plumbed into the existing 'reboot'
     capability, which is distinct from 'isolation-machine'.
     (Closes: #842300)
   * Add --setup-commands-boot for commands that must be run at every boot.
     This can be used for doing "mount -o remount,rw /" before any dpkg
     operation, or transient setup like writing files into /run/.
     (Closes: #842091)
Checksums-Sha1:
 e96237560b7a9c40a558dbd39a09bfc31d22f8ee 1863 autopkgtest_4.2.dsc
 8e35e8de65ab3ef318fe3c10a750440b4e8953dc 170440 autopkgtest_4.2.tar.xz
 6cdf92ce5978806172eb94e1f8107fd2dc5ef930 183628 autopkgtest_4.2_all.deb
Checksums-Sha256:
 43860107b87563deeda47caa8eabbbedada58fa312ff9928d7c636c452de2ce9 1863 
autopkgtest_4.2.dsc
 4ff04812a304c34408b2e3525bb97c9f20c958db6c3258313b09bc8e108acf18 170440 
autopkgtest_4.2.tar.xz
 3176bf26defd0089fdcf25040aa91851f5dcfb14408e81ebfba8615d52b0f7b9 183628 
autopkgtest_4.2_all.deb
Files:
 019f70cebd7fb0c04ae189e818689b31 1863 devel optional autopkgtest_4.2.dsc
 887fd477e1f0e6783eb7fca0cf870db4 170440 devel optional autopkgtest_4.2.tar.xz
 11dc8834c5e62bea3a2b7f1fe17f1085 183628 devel optional autopkgtest_4.2_all.deb

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJYGQeZAAoJENFO8V2v4RNHOd8QAJM5eB/Y1MxMRMNUI72AjKQQ
c9fgiaWhqVSGZJqE5ubIu3uBjvpo9okJ0vvxkd7RhATdGHwGfWd5jkCzDVnv7ibC
MIZE/vkCGNNrg4wGrWTOuyoL0RN0wfZS8tddAvmdeZPWldy1Jl7CuPc7PbMjHqkS
2MHu5cWvi4BOiby6aRwkctJ20YwZj6tRGn9JuUtv24p3xj0i79suUQ+Q1d/IEmhX
xu70sVsKHQ2ik+/CXLyR+q37L8E0asQWMXgfgvQK6ryLE05fTiRF6+xdJmnz1nAO
AvefmkzlwFR+nP93DzznUypSUUUm2RpEnq4xgFh6RHSdOkfFBMYoBtIyZZihwaJ+
IvXlthiqlkWVYo2Du9A9G6e940r2JHmzsuOUOBM1BewJar5eCjbCiWvspYJwRGya
W8aV3wmc0PVc0uvzdqPrJRuawYCk73XcmOoRAPuplUj6PegGO6RcPAEWL19dr9+F
4ugMWtuXbKCYEuIk5gXRkp3/u0HK1tzlxSMK3aT+CUQwqpZeFAMBaX6R3cOIpyaQ
7pjbOiJfBfUicEcfqIReqAP+4cSBITVjyYR2w15i45OsfXr4wMgdlGr4HwQJbKXe
YTaZppZ1TIfdznuCXmlwCJ0CUGQRNU2DkYRELN18MkXFNjs+Yu5lEIampQFiVRLv
a2dZy0HBpMQGakWesgJO
=zLq6
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to