[buildd-tools-devel] Bug#891590: sbuild: Please signalize autopkgtest failure by exit code, at least optionally

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Mon Feb 26 21:04:10 UTC 2018


Source: sbuild
Version: 0.73.0-4
Severity: wishlist

Dear Maintainer,

trying to use to autopkgtest feature of sbuild I was somewhat surprised
to learn there is no way to signalize a failing autopkgtest to the
sbuild caller. I'd expect to have something like

--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -1845,6 +1845,7 @@ sub run_autopkgtest {
     } else {
 	# fail if neither all tests passed nor was the package without tests
 	$self->log_error("Autopkgtest run failed.\n");
+	$self->set_status("failed");
 	return 0;
     }
 

at least as an option like --fail-from-failing-autopkgtest. So it seems
the only way was to inspect the build log. This doesn't seem right.

Did I miss something? Else, please take this as a feature request. Also
likewise for piuparts.

Regards,
    Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20180226/de61b870/attachment.sig>


More information about the Buildd-tools-devel mailing list