tests/run-tests.py
branchstable
changeset 1273 4598906608cf
parent 1272 4a224ed7e923
child 1274 f1a4e67c41fe
equal deleted inserted replaced
1272:4a224ed7e923 1273:4598906608cf
  1087                 running -= 1
  1087                 running -= 1
  1088             if tests and not running == jobs:
  1088             if tests and not running == jobs:
  1089                 test = tests.pop(0)
  1089                 test = tests.pop(0)
  1090                 if options.loop:
  1090                 if options.loop:
  1091                     tests.append(test)
  1091                     tests.append(test)
  1092                 t = threading.Thread(None, job, args=(test, count))
  1092                 t = threading.Thread(target=job, args=(test, count))
  1093                 t.start()
  1093                 t.start()
  1094                 running += 1
  1094                 running += 1
  1095                 count += 1
  1095                 count += 1
  1096     except KeyboardInterrupt:
  1096     except KeyboardInterrupt:
  1097         abort = True
  1097         abort = True