[Buildroot] [PATCH] autobuild-run: store summary if not uploading
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat Aug 3 19:48:36 UTC 2019
Hello,
On Tue, 15 Jan 2019 22:37:24 +0100
"Arnout Vandecappelle (Essensium/Mind)" <arnout at mind.be> wrote:
> diff --git a/scripts/autobuild-run b/scripts/autobuild-run
> index 77272f5..c3b51bc 100755
> --- a/scripts/autobuild-run
> +++ b/scripts/autobuild-run
> @@ -617,6 +617,10 @@ def send_results(result, **kwargs):
> sha1 = hashlib.sha1(f.read()).hexdigest()
> resultfilename = "instance-%d-%s.tar.bz2" % (kwargs['instance'], sha1)
> os.rename(os.path.join(outputdir, "results.tar.bz2"), resultfilename)
> + summaryfilename = "instance-%d-%s.summary" % (kwargs['instance'], sha1)
> + reason = get_failure_reason() or ("",)
> + with open(summaryfilename, 'wt') as f:
> + f.write("%d,%s\n" % (result, ','.join(reason)))
The code changed a bit around this (kwargs has been replaced by class
members, the reason is already in a "reason" variable, so no need to
call get_failure_reason() again, etc.). I fixed this up, and applied.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list