[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-cvs
Subject: gst-devtools: validate: launcher: Use the ConfigPraser object everywhere for file_infos
From: tsaunier () kemper ! freedesktop ! org (Thibault Saunier)
Date: 2014-03-31 11:35:00
Message-ID: 20140331113500.159AE76333 () kemper ! freedesktop ! org
[Download RAW message or body]
Module: gst-devtools
Branch: master
Commit: 36a0f6a67406cef134b8bb22bdf4b24c296ef578
URL: http://cgit.freedesktop.org/gstreamer/gst-devtools/commit/?id=36a0f6a67406cef134b8bb22bdf4b24c296ef578
Author: Thibault Saunier <tsaunier@gnome.org>
Date: Mon Mar 31 11:03:48 2014 +0200
validate: launcher: Use the ConfigPraser object everywhere for file_infos
---
validate/tools/launcher/apps/gst-validate.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/validate/tools/launcher/apps/gst-validate.py \
b/validate/tools/launcher/apps/gst-validate.py index 4aeed30..fc0d28b 100644
--- a/validate/tools/launcher/apps/gst-validate.py
+++ b/validate/tools/launcher/apps/gst-validate.py
@@ -181,7 +181,7 @@ class GstValidateMediaCheckTest(Test):
timeout=timeout)
self._uri = uri
self.file_infos = file_infos
- self._media_info_path = urlparse.urlparse(file_infos.path).path
+ self._media_info_path = urlparse.urlparse(file_infos.get("file-info", \
"uri")).path
def build_arguments(self):
self.add_arguments(self._uri, "--expected-results",
@@ -304,7 +304,7 @@ class GstValidateManager(TestsManager, Loggable):
self.add_test(GstValidateMediaCheckTest(classname,
self.options,
self.reporter,
- mediainfo,
+ mediainfo.config,
uri,
timeout=timeout))
@@ -435,8 +435,8 @@ class GstValidateManager(TestsManager, Loggable):
def needs_http_server(self):
for test in self.list_tests():
if self._is_test_wanted(test):
- protocol = test.file_infos.config.get("file-info", "protocol")
- uri = test.file_infos.config.get("file-info", "uri")
+ protocol = test.file_infos.get("file-info", "protocol")
+ uri = test.file_infos.get("file-info", "uri")
if protocol == Protocols.HTTP and \
"127.0.0.1:%s" % (self.options.http_server_port) in uri:
_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic