validate: Better organize rendered files

This commit is contained in:
Thibault Saunier 2014-02-06 17:22:36 +01:00
parent ca12b78be3
commit 10c192f693
2 changed files with 8 additions and 12 deletions

View file

@ -120,12 +120,10 @@ class GESRenderTest(GESTest):
self._set_rendering_info()
def _set_rendering_info(self):
self.dest_file = os.path.join(self.options.dest,
"ges.",
os.path.basename(self.project_uri) +
'-' + self.combination.acodec +
self.combination.vcodec + '.' +
self.combination.container)
self.dest_file = path = os.path.join(self.options.dest,
self.classname.replace(".render.", os.sep).
replace(".", os.sep))
utils.mkdir(os.path.dirname(urlparse.urlsplit(self.dest_file).path))
if not utils.isuri(self.dest_file):
self.dest_file = utils.path2url(self.dest_file)

View file

@ -185,12 +185,10 @@ class GstValidateTranscodingTest(GstValidateTest):
self.dest_file = ""
def set_rendering_info(self):
self.dest_file = os.path.join(self.options.dest,
"validate.transcoding." +
os.path.basename(self.uri) +
'-' + self.combination.acodec +
self.combination.vcodec + '.' +
self.combination.container)
self.dest_file = path = os.path.join(self.options.dest,
self.classname.replace(".transcode.", os.sep).
replace(".", os.sep))
utils.mkdir(os.path.dirname(urlparse.urlsplit(self.dest_file).path))
if urlparse.urlparse(self.dest_file).scheme == "":
self.dest_file = path2url(self.dest_file)