validate: Run IQA tests when possible

Meaning that a reference file has to be present on disk with a
`.expected_result` extension.
This commit is contained in:
Thibault Saunier 2018-05-13 16:37:08 -04:00
parent 36aa60b010
commit ab956c20e8

View file

@ -171,6 +171,11 @@ class GESRenderTest(GESTest, GstValidateEncodingTestInterface):
GESTest.build_arguments(self)
self._set_rendering_info()
def run_external_checks(self):
reference_file_path = urllib.parse.urlsplit(self.media_descriptor.get_uri()).path + ".expected_result"
if os.path.exists(reference_file_path):
self.run_iqa_test(utils.path2url(reference_file_path))
def _set_rendering_info(self):
self.dest_file = path = os.path.join(self.options.dest,
self.classname.replace(".render.", os.sep).