From eedee03c6a9859e7b0d506f4f57b8cf7ecf038f4 Mon Sep 17 00:00:00 2001 From: baconyao Date: Thu, 15 Aug 2024 12:51:31 +0800 Subject: [PATCH] Update resource --- .../bin/gst_resources_generator.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/gst_resources_generator.py b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/gst_resources_generator.py index b102a5f13b..f61adbe5e5 100755 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/gst_resources_generator.py +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/gst_resources_generator.py @@ -98,18 +98,22 @@ def _v4l2_video_decoder_md5_checksum_comparison_helper( Generate a resource item dictionary for gst_v4l2_video_decoder_md5_checksum_comparison scenario """ - name = "{}x{}-{}-{}".format(width, height, decoder_plugin, color_space) - golden_sample_file = "{}/{}/{}.{}".format( + name = "{}x{}-{}-{}".format( + width, height, decoder_plugin, color_space + ) + name_with_format = "{}.{}".format(name, source_format) + golden_sample_file = os.path.join( self._args.video_codec_testing_data_path, self.VIDEO_GOLDEN_SAMPLES, - name, - source_format, + name_with_format, ) - golden_md5_checkum_file = "{}/{}/golden_md5_checksum/{}/{}.md5".format( + md5_name = "{}.md5".format(name) + golden_md5_checkum_file = os.path.join( self._args.video_codec_testing_data_path, self._current_scenario_name, + "golden_md5_checksum", self._conf_name, - name, + md5_name, ) returned_dict = {