[buildd-tools-devel] Bug#824935: sbuild: better support for running autopkgtests

Sean Whitton spwhitton at spwhitton.name
Tue Aug 2 14:23:08 UTC 2016


Dear Johannes,

Thank you for working on my feature request :)

On Tue, Aug 02, 2016 at 01:26:03PM +0200, Johannes Schauer wrote:
> I now have a local patch that adds autopkgtest support in the same way that
> piuparts support is added. But if I understand the changelog entry for version
> 4.0 correctly, then I should now use the autopkgtest binary instead of adt-run
> and use '--' instead of '---'. Is that correct? Somehow the autopkgtest man
> page still talks about '---' in the synopsis.

Yes, that's correct.  The manpage is wrong.

> The default is now to run:
> 
> sudo -- autopkgtest foobar.changes -- null

Per the discussion in #828025, I'm pretty sure this will fail because
the .changes generated by sbuild doesn't contain the .dsc.  So I think
you need

    sudo -- autopkgtest foo.dsc foobar.changes -- null

> Should the default be to run autopkgtest with sudo in front?

I'm pretty sure the null test bed requires this to install packages,
yes.  However, it's good that you've made it possible to remove it,
since it isn't needed for schroot test beds.

> The '--autopkgtest-opts' command line option allows one to replace the
> '-- null' part in the example above with custom options. Implementing
> percentage escapes will come at a later point if required. Please open
> a separate bug for that and then I can also implement that for
> piuparts.

Filed #833285 and #833286.

> The 'autopkgtest-root-args' command line option allows one to replace
> the 'sudo --' part in the example above.
> 
> Does this sound sensible as an initial implementation?

Looks good to me, though I haven't done any testing yet.

-- 
Sean Whitton
-------------- 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/buildd-tools-devel/attachments/20160802/852dcb65/attachment.sig>


More information about the Buildd-tools-devel mailing list