mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate: generate test names with the stream_info filename.
And not with the contained uri string, which is variable.
This commit is contained in:
parent
3979c49cd2
commit
99204c0018
1 changed files with 6 additions and 2 deletions
|
@ -92,9 +92,12 @@ class GstValidateTranscodingTestsGenerator(GstValidateTestsGenerator):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for comb in self.test_manager.get_encoding_formats():
|
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(),
|
classname = "validate.%s.transcode.to_%s.%s" % (mediainfo.media_descriptor.get_protocol(),
|
||||||
str(comb).replace(' ', '_'),
|
str(comb).replace(' ', '_'),
|
||||||
os.path.basename(uri).replace(".", "_"))
|
suffix)
|
||||||
self.add_test(GstValidateTranscodingTest(classname,
|
self.add_test(GstValidateTranscodingTest(classname,
|
||||||
self.test_manager.options,
|
self.test_manager.options,
|
||||||
self.test_manager.reporter,
|
self.test_manager.reporter,
|
||||||
|
@ -179,7 +182,8 @@ class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator):
|
||||||
|
|
||||||
fname = "%s.%s" % (self.get_fname(scenario,
|
fname = "%s.%s" % (self.get_fname(scenario,
|
||||||
protocol),
|
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)
|
self.debug("Adding: %s", fname)
|
||||||
|
|
||||||
if scenario.does_reverse_playback() and protocol == Protocols.HTTP:
|
if scenario.does_reverse_playback() and protocol == Protocols.HTTP:
|
||||||
|
|
Loading…
Reference in a new issue