tests/run-tests.py
branchstable
changeset 1358 805a5c2fe9c8
parent 1355 238b6ca6d2bb
child 1361 1d3aa8779efb
equal deleted inserted replaced
1357:a9e00192f30a 1358:805a5c2fe9c8
  1178     (options, args) = parseargs()
  1178     (options, args) = parseargs()
  1179     os.umask(022)
  1179     os.umask(022)
  1180 
  1180 
  1181     checktools()
  1181     checktools()
  1182 
  1182 
  1183     if len(args) == 0:
  1183     if not args:
  1184         args = [t for t in os.listdir(".")
  1184         args = os.listdir(".")
  1185                 if t.startswith("test-")
  1185 
  1186                 and (t.endswith(".py") or t.endswith(".t"))]
  1186     tests = [t for t in args
  1187 
  1187              if t.startswith("test-")
  1188     tests = args
  1188              and (t.endswith(".py") or t.endswith(".t"))]
  1189 
  1189 
  1190     if options.random:
  1190     if options.random:
  1191         random.shuffle(tests)
  1191         random.shuffle(tests)
  1192     else:
  1192     else:
  1193         # keywords for slow tests
  1193         # keywords for slow tests