summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2014-02-06 17:22:36 +0100
committerThibault Saunier <thibault.saunier@collabora.com>2014-02-18 21:07:31 +0100
commit10c192f6931c6194b68c628a3dcf151b852a0444 (patch)
tree700e2337258a17972c04bcc2f032705f9b5192d8
parentca12b78be38f394d800d3a9033971d87203e250b (diff)
validate: Better organize rendered files
-rw-r--r--validate/tools/launcher/apps/ges-launch.py10
-rw-r--r--validate/tools/launcher/apps/gst-validate.py10
2 files changed, 8 insertions, 12 deletions
diff --git a/validate/tools/launcher/apps/ges-launch.py b/validate/tools/launcher/apps/ges-launch.py
index 3bfaf06..d3070e3 100644
--- a/validate/tools/launcher/apps/ges-launch.py
+++ b/validate/tools/launcher/apps/ges-launch.py
@@ -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)
diff --git a/validate/tools/launcher/apps/gst-validate.py b/validate/tools/launcher/apps/gst-validate.py
index 5d51478..10c1fcf 100644
--- a/validate/tools/launcher/apps/gst-validate.py
+++ b/validate/tools/launcher/apps/gst-validate.py
@@ -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)