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 <>
Reviewed-by: Eric Anholt <> (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
def dmesg(self):
......@@ -78,6 +78,7 @@ def main():
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
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