From 0820a10db87c2ebfb1f10788ce61b0b62d87ba6c Mon Sep 17 00:00:00 2001 From: Sam Richards Date: Mon, 19 Feb 2024 15:21:44 +0000 Subject: [PATCH] Explicitly adding a wedge field, to make it easy to display in graphs. (#81) Signed-off-by: Sam.Richards@taurich.org Co-authored-by: Sam.Richards@taurich.org --- enctests/testframework/encoders/ffmpeg_encoder.py | 2 ++ enctests/testframework/utils/outputTemplate.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/enctests/testframework/encoders/ffmpeg_encoder.py b/enctests/testframework/encoders/ffmpeg_encoder.py index 3c9daf1..bb4e876 100644 --- a/enctests/testframework/encoders/ffmpeg_encoder.py +++ b/enctests/testframework/encoders/ffmpeg_encoder.py @@ -99,6 +99,8 @@ def run_wedges(self) -> dict: 'test_config_path' )) test_meta['command'] = cmd + test_meta['wedge_name'] = wedge_name + test_meta['test_prefix'] = self.test_config.get('name') test_meta['encode_arguments'] = wedge test_meta['description'] = self.test_config.get('description') test_meta['outputfile'] = str(out_file) diff --git a/enctests/testframework/utils/outputTemplate.py b/enctests/testframework/utils/outputTemplate.py index 622fee9..f9f972b 100644 --- a/enctests/testframework/utils/outputTemplate.py +++ b/enctests/testframework/utils/outputTemplate.py @@ -73,7 +73,8 @@ def processTemplate(config, timeline): merge_test_info = test_info.metadata['aswf_enctests']['results'] merge_test_info['name'] = ref_name merge_test_info['testbasename'] = test_info.metadata['aswf_enctests']['testbasename'] - merge_test_info['wedge'] = ref_name.replace(track.metadata.get('source_test_name', '')+"-", "") + merge_test_info['wedge'] = test_info.metadata['aswf_enctests']['wedge_name'] + print("Wedge:", merge_test_info['wedge'], ref_name) if 'description' in test_info.metadata['aswf_enctests']: merge_test_info['test_description'] = test_info.metadata['aswf_enctests']['description'] results.append(merge_test_info)