~echidnaman/jockey/jockey-pykde4

« back to all changes in this revision

Viewing changes to tests/run

  • Committer: Martin Pitt
  • Date: 2008-08-15 10:58:10 UTC
  • Revision ID: martin.pitt@canonical.com-20080815105810-vvonyp3fizg8u1y7
tests/run: run tests in alphabetical python module order

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    logging.basicConfig(stream=sandbox.log, level=logging.DEBUG)
59
59
 
60
60
    # run all tests in our directory
61
 
    suite = unittest.TestLoader().loadTestsFromNames(
62
 
        [t[:-3] for t in os.listdir(os.path.dirname(__file__)) 
63
 
         if t.endswith('.py') and filter in t])
 
61
    tests = [t[:-3] for t in os.listdir(os.path.dirname(__file__))
 
62
             if t.endswith('.py') and filter in t]
 
63
    tests.sort()
 
64
    suite = unittest.TestLoader().loadTestsFromNames(tests)
64
65
    res = unittest.TextTestRunner(verbosity=2).run(suite)
65
66
 
66
67
    if use_coverage: