testsuite/runtests.py (tests): Run all tests in one TestSuite instead of several.
authorJohan Dahlin <johan@gnome.org>
Wed, 21 Apr 2004 09:45:44 +0000 (09:45 +0000)
committerJohan Dahlin <johan@gnome.org>
Wed, 21 Apr 2004 09:45:44 +0000 (09:45 +0000)
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.

ChangeLog
common
testsuite/element.py
testsuite/runtests.py
testsuite/test_element.py

index d163091..3e3c254 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-04-21  Johan Dahlin  <johan@gnome.org>
+
+       * 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  <johan@gnome.org>
 
        * configure.ac (PYGTK_CODEGEN): Use built in code generator again
diff --git a/common b/common
index d03e438..63d93f0 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit d03e4388098656fa65df4d3a29e40fc556173d2d
+Subproject commit 63d93f01177745ba864263f0b6f976212684cb87
index 5adb4c8..502ab5a 100644 (file)
@@ -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):
index 83110d1..42eabde 100644 (file)
@@ -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)
index 5adb4c8..502ab5a 100644 (file)
@@ -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):