summaryrefslogtreecommitdiffstats
path: root/scripts/lib/resulttool/regression.py
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-10-11 10:19:10 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-11 15:57:45 +0100
commit3315ffac4739dd0b9e9dbcb81b2ae0fb4341e00c (patch)
treef8160101cf03dc9ab75f0a900b5d8320d1a53533 /scripts/lib/resulttool/regression.py
parent8028c989ccfc363e437da80c4791fabd7977d99b (diff)
downloadpoky-3315ffac4739dd0b9e9dbcb81b2ae0fb4341e00c.tar.gz
resulttool/regression.py: fix AttributeError
Fix following AttributeError when running "resulttool regression base target": File "/yocto/poky/scripts/lib/resulttool/regression.py", line 322, in regression_common res, resstr = compare_result(logger, c, b, base_results[a][c], target_results[a][b], args.limit) AttributeError: 'Namespace' object has no attribute 'limit' (From OE-Core rev: d773edde8db2019550916d2552171c45fe31ac2a) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/resulttool/regression.py')
-rw-r--r--scripts/lib/resulttool/regression.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/resulttool/regression.py b/scripts/lib/resulttool/regression.py
index 10e7d13841..204e6eecb7 100644
--- a/scripts/lib/resulttool/regression.py
+++ b/scripts/lib/resulttool/regression.py
@@ -422,6 +422,7 @@ def register_commands(subparsers):
422 help='(optional) filter the base results to this result ID') 422 help='(optional) filter the base results to this result ID')
423 parser_build.add_argument('-t', '--target-result-id', default='', 423 parser_build.add_argument('-t', '--target-result-id', default='',
424 help='(optional) filter the target results to this result ID') 424 help='(optional) filter the target results to this result ID')
425 parser_build.add_argument('-l', '--limit', default=REGRESSIONS_DISPLAY_LIMIT, help="Maximum number of changes to display per test. Can be set to 0 to print all changes")
425 426
426 parser_build = subparsers.add_parser('regression-git', help='regression git analysis', 427 parser_build = subparsers.add_parser('regression-git', help='regression git analysis',
427 description='regression analysis comparing base result set to target ' 428 description='regression analysis comparing base result set to target '