mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
resulttool: Allow store to filter to specific revisions
We have a challenge on the autobuilder where test results from both OE-Core and poky are being mixed together during result storage which is confusing the data. Add a way to filter to specific revisions as the least worst way to fix the various issues this is causing. (From OE-Core rev: 3f276a0dc65341668788853be2cf27ab6aa12b13) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
273eb505cb
commit
f0d4814d4d
|
@ -65,6 +65,9 @@ def store(args, logger):
|
||||||
|
|
||||||
for r in revisions:
|
for r in revisions:
|
||||||
results = revisions[r]
|
results = revisions[r]
|
||||||
|
if args.revision and r[0] != args.revision:
|
||||||
|
logger.info('skipping %s as non-matching' % r[0])
|
||||||
|
continue
|
||||||
keywords = {'commit': r[0], 'branch': r[1], "commit_count": r[2]}
|
keywords = {'commit': r[0], 'branch': r[1], "commit_count": r[2]}
|
||||||
subprocess.check_call(["find", tempdir, "!", "-path", "./.git/*", "-delete"])
|
subprocess.check_call(["find", tempdir, "!", "-path", "./.git/*", "-delete"])
|
||||||
resultutils.save_resultsdata(results, tempdir, ptestlogs=True)
|
resultutils.save_resultsdata(results, tempdir, ptestlogs=True)
|
||||||
|
@ -102,3 +105,5 @@ def register_commands(subparsers):
|
||||||
help='add executed-by configuration to each result file')
|
help='add executed-by configuration to each result file')
|
||||||
parser_build.add_argument('-t', '--extra-test-env', default='',
|
parser_build.add_argument('-t', '--extra-test-env', default='',
|
||||||
help='add extra test environment data to each result file configuration')
|
help='add extra test environment data to each result file configuration')
|
||||||
|
parser_build.add_argument('-r', '--revision', default='',
|
||||||
|
help='only store data for the specified revision')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user