From: Johan Dahlin Date: Wed, 21 Apr 2004 09:45:44 +0000 (+0000) Subject: testsuite/runtests.py (tests): Run all tests in one TestSuite instead of several. X-Git-Tag: 1.19.3~485^2~1291 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2040bb0056fda6afa3c4dc1804fd84db90d78d1;p=platform%2Fupstream%2Fgstreamer.git testsuite/runtests.py (tests): Run all tests in one TestSuite instead of several. Original commit message from CVS: * testsuite/runtests.py (tests): Run all tests in one TestSuite instead of several. * testsuite/element.py (FakeSinkTest.setUp): Disable StateError tests until there is a way to disable element error output. --- diff --git a/ChangeLog b/ChangeLog index d163091..3e3c254 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-04-21 Johan Dahlin + + * testsuite/runtests.py (tests): Run all tests in one TestSuite + instead of several. + + * testsuite/element.py (FakeSinkTest.setUp): Disable StateError + tests until there is a way to disable element error output. + 2004-04-16 Johan Dahlin * configure.ac (PYGTK_CODEGEN): Use built in code generator again diff --git a/common b/common index d03e438..63d93f0 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit d03e4388098656fa65df4d3a29e40fc556173d2d +Subproject commit 63d93f01177745ba864263f0b6f976212684cb87 diff --git a/testsuite/element.py b/testsuite/element.py index 5adb4c8..502ab5a 100644 --- a/testsuite/element.py +++ b/testsuite/element.py @@ -32,7 +32,8 @@ class FakeSinkTest(ElementTest): def setUp(self): self.element = gst.Element('fakesink', 'sink') - def testStateError(self): + # Disabled - since it outputs junks + def _testStateError(self): self.element.set_property('state-error', self.FAKESINK_STATE_ERROR_NULL_READY) def error_cb(element, source, error, debug): diff --git a/testsuite/runtests.py b/testsuite/runtests.py index 83110d1..42eabde 100644 --- a/testsuite/runtests.py +++ b/testsuite/runtests.py @@ -1,12 +1,12 @@ #!/usr/bin/env python import sys -from unittest import TestLoader, TextTestRunner +from unittest import TestSuite, TestLoader, TextTestRunner from types import ClassType loader = TestLoader() testRunner = TextTestRunner() +test = TestSuite() for name in ('element', 'interface', 'pipeline'): - print 'Testing', name - tests = loader.loadTestsFromName(name) - testRunner.run(tests) + test.addTest(loader.loadTestsFromName(name)) +testRunner.run(tests) diff --git a/testsuite/test_element.py b/testsuite/test_element.py index 5adb4c8..502ab5a 100644 --- a/testsuite/test_element.py +++ b/testsuite/test_element.py @@ -32,7 +32,8 @@ class FakeSinkTest(ElementTest): def setUp(self): self.element = gst.Element('fakesink', 'sink') - def testStateError(self): + # Disabled - since it outputs junks + def _testStateError(self): self.element.set_property('state-error', self.FAKESINK_STATE_ERROR_NULL_READY) def error_cb(element, source, error, debug):