Updating all python QA programs in gnuradio-core to output XML files.
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr_unittest.py
index 29a73194313412f5a8500a8871e144da0bd03dc2..8ecd83d5477f22c6a33dfa138d48dfb4dd738b22 100755 (executable)
@@ -127,11 +127,19 @@ def run(PUT, filename=None):
 
         # Create an XML runner to filename
         fout = file(path+"/"+filename, "w")
-        runner = gr_xmlrunner.XMLTestRunner(fout)
+        xmlrunner = gr_xmlrunner.XMLTestRunner(fout)
+        txtrunner = TextTestRunner(verbosity=1)
 
         # Run the test; runner also creates XML output file
+        # FIXME: make xmlrunner output to screen so we don't have to do run and main
         suite = TestLoader().loadTestsFromTestCase(PUT)
-        runner.run(suite)
+        xmlrunner.run(suite)
+        main()
+        
+        # This will run and fail make check if problem
+        # but does not output to screen.
+        #main(testRunner = xmlrunner)
+
     else:
         # If no filename is given, just run the test
         main()