Commit 45de1cb3 authored by Dylan Baker's avatar Dylan Baker

python: Add results_dir to TestProfile

This is needed specifically by XTS, but it might be useful for other
external suites that want to move files out of their runtime directories
into the saved directory. Specifically if those files are linked into
the summary.

v3: - Add the results_dir name definition to the constructor
Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net> (v2)
parent e0f2d77f
......@@ -44,6 +44,7 @@ class TestProfile(object):
self.filters = []
# Sets a default of a Dummy
self.dmesg = False
self.results_dir = None
@property
def dmesg(self):
......
......@@ -78,6 +78,7 @@ def main():
env.exclude_tests.add(key)
profile = framework.profile.merge_test_profiles(results.options['profile'])
profile.results_dir = args.results_path
if env.dmesg:
profile.dmesg = env.dmesg
......
......@@ -159,6 +159,7 @@ def main():
json_writer.write_dict_item(key, value)
profile = framework.profile.merge_test_profiles(args.test_profile)
profile.results_dir = args.results_path
json_writer.write_dict_key('tests')
json_writer.open_dict()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment