old_contents: # -*- encoding: utf-8 -*-
  import sys
  import os
  import test.cache as tc
  import test.dateandtime as td
  import test.nagios as tn
  import test.generaloption as tg
  import test.nagios_results as tr
  import unittest
  
  suite = unittest.TestSuite([x.suite() for  x in (tc, td, tn, tg, tr)])
  
  try:
      import xmlrunner
      rs = xmlrunner.XMLTestRunner(output="test-reports").run(suite)
  except ImportError, err:
      rs = unittest.TextTestRunner().run(suite)
  
  if not rs.wasSuccessful():
      sys.exit(1)
  
new_contents: # -*- encoding: utf-8 -*-
  import sys
  import os
  import processcontrol as p
  import unittest
  
  suite = unittest.TestSuite([p.suite()])
  
  try:
      import xmlrunner
      rs = xmlrunner.XMLTestRunner(output="test-reports").run(suite)
  except ImportError, err:
      rs = unittest.TextTestRunner().run(suite)
  
  if not rs.wasSuccessful():
      sys.exit(1)
  
subject: Fix the test suite runner