From: <bi...@fr...> - 2005-11-29 11:40:38
|
CVS Root: /cvs/gstreamer Module: gst-media-test Changes by: bilboed Date: Tue Nov 29 2005 03:40:29 PST Log message: * gsttester.py: Set pipeline to NULL at end of test, so that it checks that plugins behave properly (i.e: DO NOT CRASH) * runtests.py: Fix for outputting to the correct topdir Modified files: . : ChangeLog gsttester.py runtests.py Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-media-test/ChangeLog.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-media-test/gsttester.py.diff?r1=1.1&r2=1.2 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-media-test/runtests.py.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-media-test/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ChangeLog 28 Nov 2005 16:23:45 -0000 1.2 +++ ChangeLog 29 Nov 2005 11:40:17 -0000 1.3 @@ -1,3 +1,11 @@ +2005-11-29 Edward Hervey <ed...@fl...> + + * gsttester.py: + Set pipeline to NULL at end of test, so that it checks that plugins + behave properly (i.e: DO NOT CRASH) + * runtests.py: + Fix for outputting to the correct topdir 2005-11-28 Edward Hervey <ed...@fl...> * typefindtest.py: Index: gsttester.py RCS file: /cvs/gstreamer/gst-media-test/gsttester.py,v retrieving revision 1.1 diff -u -d -r1.1 -r1.2 --- gsttester.py 28 Nov 2005 13:06:56 -0000 1.1 +++ gsttester.py 29 Nov 2005 11:40:17 -0000 1.2 @@ -8,6 +8,7 @@ # _ Logging all elements used # _ Logging all Errors (and stopping test) # _ Checking for timeouts +# _ Checking pipeline can properly go to NULL # import pygst @@ -116,7 +117,8 @@ self._success = False self._reason = "Test Timed out" self._percentage = 0 - self.pipeline.set_state(gst.STATE_READY) + self.pipeline.info("about to set to NULL") + self.pipeline.set_state(gst.STATE_NULL) gst.info("about to send %r,%r,%s,%r" % (self._success, self._reason, self._errors, self.infos)) data = cPickle.dumps([self._success, self._reason, Index: runtests.py RCS file: /cvs/gstreamer/gst-media-test/runtests.py,v --- runtests.py 28 Nov 2005 13:06:56 -0000 1.1 +++ runtests.py 29 Nov 2005 11:40:17 -0000 1.2 @@ -172,7 +172,10 @@ hanged = False # spawn process - subtest = subprocess.Popen(["python", testscript + ".py", "--gst-fatal-warnings", fil], + subtest = subprocess.Popen(["python", + os.path.join(os.path.dirname(os.path.abspath(__file__)), + testscript + ".py"), + "--gst-fatal-warnings", fil], stdout = logfile, stderr = logfile, env=os.environ) |