From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Joshua Watt <jpewhacker@gmail.com>,
openembedded-core@lists.openembedded.org,
Nathan Rossi <nathan@nathanrossi.com>
Subject: Re: [PATCH] resulttool: Add reproducible log extraction
Date: Fri, 06 Sep 2019 10:49:12 +0100 [thread overview]
Message-ID: <e4f98f46bf6430a9ada9b2ef796e45dfc1f7cbcc.camel@linuxfoundation.org> (raw)
In-Reply-To: <20190905135444.16261-1-JPEWhacker@gmail.com>
On Thu, 2019-09-05 at 08:54 -0500, Joshua Watt wrote:
> Adds an argument to the log subcommand to extract the raw logs from
> the
> reproducible selftest.
>
> To prevent ambiguity, the "--raw" argument has been renamed
> "--raw-ptest", although the old "--raw" argument is kept around for
> compatibility.
>
> [YOCTO #13324]
>
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
> scripts/lib/resulttool/log.py | 33 ++++++++++++++++++++++++++++++---
> 1 file changed, 30 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/lib/resulttool/log.py
> b/scripts/lib/resulttool/log.py
> index 25c3396717e..2352c767d91 100644
> --- a/scripts/lib/resulttool/log.py
> +++ b/scripts/lib/resulttool/log.py
> @@ -16,6 +16,16 @@ def show_ptest(result, ptest, logger):
> print("ptest '%s' not found" % ptest)
> return 1
>
> +def show_reproducible(result, reproducible, logger):
> + try:
> + print(result['reproducible'][reproducible]['diffoscope.text'
> ])
> + return 0
> +
> + except KeyError:
> + print("reproducible '%s' not found" % reproducible)
> + return 1
> +
> +
> def log(args, logger):
> results = resultutils.load_resultsdata(args.source)
>
> @@ -40,17 +50,28 @@ def log(args, logger):
> with open(dest, 'w') as f:
> f.write(ptest['log'])
>
You might want to consider this in autobuilder context:
http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper/tree/scripts/generate-testresult-index.py#n121
Since the indexer could extract reproducible logs as well as ptest
ones.
Nathan: We probably need to think about the new testsuite pieces in
this context too...
Cheers,
Richard
next prev parent reply other threads:[~2019-09-06 9:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-05 13:54 [PATCH] resulttool: Add reproducible log extraction Joshua Watt
2019-09-06 9:49 ` Richard Purdie [this message]
2019-09-06 13:54 ` Joshua Watt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4f98f46bf6430a9ada9b2ef796e45dfc1f7cbcc.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=jpewhacker@gmail.com \
--cc=nathan@nathanrossi.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox