tests/run-tests.py
changeset 20793 60c175c1e708
parent 20680 d3d3e94e2910
child 20821 3d1d16b19e7d
equal deleted inserted replaced
20792:89059c450c56 20793:60c175c1e708
  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