tests/run-tests.py
changeset 2702 133811a7688b
parent 2611 1b4eb1f92433
child 2703 d32b31e88391
equal deleted inserted replaced
2664:9b8df8dceeed 2702:133811a7688b
   332         failed = 0
   332         failed = 0
   333 
   333 
   334         if len(args) == 0:
   334         if len(args) == 0:
   335             args = os.listdir(".")
   335             args = os.listdir(".")
   336         for test in args:
   336         for test in args:
   337             if test.startswith("test-") and not '~' in test and not '.' in test:
   337             if (test.startswith("test-") and '~' not in test and
       
   338                 ('.' not in test or test.endswith('.py') or 
       
   339                  test.endswith('.bat'))):
   338                 if not run_one(test):
   340                 if not run_one(test):
   339                     failed += 1
   341                     failed += 1
   340                 tests += 1
   342                 tests += 1
   341 
   343 
   342         print "\n# Ran %d tests, %d failed." % (tests, failed)
   344         print "\n# Ran %d tests, %d failed." % (tests, failed)