From 99204c0018a38d58a2ed60d7c9957873083d6fc0 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 19 Aug 2014 18:06:14 +0200 Subject: [PATCH] validate: generate test names with the stream_info filename. And not with the contained uri string, which is variable. --- validate/tools/launcher/apps/gst-validate.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/validate/tools/launcher/apps/gst-validate.py b/validate/tools/launcher/apps/gst-validate.py index b598359ec4..cd7fea58a7 100644 --- a/validate/tools/launcher/apps/gst-validate.py +++ b/validate/tools/launcher/apps/gst-validate.py @@ -92,9 +92,12 @@ class GstValidateTranscodingTestsGenerator(GstValidateTestsGenerator): continue for comb in self.test_manager.get_encoding_formats(): + suffix = os.path.basename (mediainfo.media_descriptor.get_path()) + suffix = suffix.replace (".media_info", "") + suffix = suffix.replace (".stream_info", "") classname = "validate.%s.transcode.to_%s.%s" % (mediainfo.media_descriptor.get_protocol(), str(comb).replace(' ', '_'), - os.path.basename(uri).replace(".", "_")) + suffix) self.add_test(GstValidateTranscodingTest(classname, self.test_manager.options, self.test_manager.reporter, @@ -179,7 +182,8 @@ class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator): fname = "%s.%s" % (self.get_fname(scenario, protocol), - os.path.basename(uri).replace(".", "_")) + os.path.basename(minfo.media_descriptor.get_path()).replace(".stream_info", + '').replace(".media_info", '')) self.debug("Adding: %s", fname) if scenario.does_reverse_playback() and protocol == Protocols.HTTP: