Bug#822285: ‘adtlog.summary_stream’ is None when run by Sbuild

Martin Pitt mpitt at debian.org
Sun Apr 24 21:20:47 UTC 2016


Control: tag -1 pending

Hello Ben,

Ben Finney [2016-04-23  9:16 +1000]:
> AttributeError: 'NoneType' object has no attribute 'flush'

Thanks for the report. You actually hit a corner case here:

> adt-run --changes /home/bignose/Projects/debian/python-lockfile/build-area/python-lockfile/python-lockfile_0.12.2-2_amd64.changes --no-built-binaries --source /home/bignose/Projects/debian/python-lockfile/build-area/python-lockfile/python-lockfile_0.12.2-2.dsc --- schroot unstable-amd64-sbuild

Please note that this will run the python-lockfile tests *twice* --
first from the .dsc included in the _amd64.changes, and then *again*
from the explicitly specified .dsc argument. The log also shows that.

You probably want to drop the .dsc argument and --no-built-binaries
(as running a binary .changes already implies that -- it just takes
the binaries from that .changes too). See
/usr/share/doc/autopkgtest/README.running-tests.html for the details.

Running multiple tests in one command line is supported in principle,
but was broken some time ago with the above crash. This was trivially
reproducible in a test case which also pointed out another bug when
using multiple --built-tree arguments.

http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=41bc04
fixes both issues with a test.

Thanks,

Martin

P.S. I know this is confusing, but the CLI specification was done way
before my time. See https://launchpad.net/bugs/1453509 for simplifying
the CLI in the future.

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20160424/4d5e6da4/attachment-0001.sig>


More information about the autopkgtest-devel mailing list