diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2019-11-07 17:50:30 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-14 13:20:59 +0000 |
commit | f2d5800563e8004037cafe3bf238fec3dec35a72 (patch) | |
tree | 40501557c204c50b009db6ecd8f5a4e353102521 /scripts | |
parent | 610b02a2fbdf66488edb91963c08daf6f928a7f7 (diff) | |
download | poky-f2d5800563e8004037cafe3bf238fec3dec35a72.tar.gz |
resulttool/store.py: Enable add extra test environment data
Enable the option to add extra test environment data to the
configuration of each test result (as optional).
Example of optional test environment data include:
- custom packages included for runtime test
- detail machine specification used as target
- detail host environment used for bitbake
(From OE-Core rev: 3cc887a72c5726024c3699e6a3deb72fad4992a9)
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/resulttool/store.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/store.py b/scripts/lib/resulttool/store.py index 79c83dd8b7..e0951f0a8f 100644 --- a/scripts/lib/resulttool/store.py +++ b/scripts/lib/resulttool/store.py | |||
@@ -24,6 +24,8 @@ def store(args, logger): | |||
24 | configvars = resultutils.extra_configvars.copy() | 24 | configvars = resultutils.extra_configvars.copy() |
25 | if args.executed_by: | 25 | if args.executed_by: |
26 | configvars['EXECUTED_BY'] = args.executed_by | 26 | configvars['EXECUTED_BY'] = args.executed_by |
27 | if args.extra_test_env: | ||
28 | configvars['EXTRA_TEST_ENV'] = args.extra_test_env | ||
27 | results = {} | 29 | results = {} |
28 | logger.info('Reading files from %s' % args.source) | 30 | logger.info('Reading files from %s' % args.source) |
29 | if resultutils.is_url(args.source) or os.path.isfile(args.source): | 31 | if resultutils.is_url(args.source) or os.path.isfile(args.source): |
@@ -98,4 +100,5 @@ def register_commands(subparsers): | |||
98 | help='don\'t error if no results to store are found') | 100 | help='don\'t error if no results to store are found') |
99 | parser_build.add_argument('-x', '--executed-by', default='', | 101 | parser_build.add_argument('-x', '--executed-by', default='', |
100 | help='add executed-by configuration to each result file') | 102 | help='add executed-by configuration to each result file') |
101 | 103 | parser_build.add_argument('-t', '--extra-test-env', default='', | |
104 | help='add extra test environment data to each result file configuration') | ||