tests/run-tests.py
branchstable
changeset 1168 96a0960a7909
parent 1166 d38c648869bb
child 1169 28f06763bfb2
equal deleted inserted replaced
1166:d38c648869bb 1168:96a0960a7909
  1028 
  1028 
  1029 def runchildren(options, tests):
  1029 def runchildren(options, tests):
  1030     if INST:
  1030     if INST:
  1031         installhg(options)
  1031         installhg(options)
  1032         _checkhglib("Testing")
  1032         _checkhglib("Testing")
       
  1033     else:
       
  1034         usecorrectpython()
  1033 
  1035 
  1034     optcopy = dict(options.__dict__)
  1036     optcopy = dict(options.__dict__)
  1035     optcopy['jobs'] = 1
  1037     optcopy['jobs'] = 1
  1036 
  1038 
  1037     # Because whitelist has to override keyword matches, we have to
  1039     # Because whitelist has to override keyword matches, we have to
  1147 
  1149 
  1148     try:
  1150     try:
  1149         if INST:
  1151         if INST:
  1150             installhg(options)
  1152             installhg(options)
  1151             _checkhglib("Testing")
  1153             _checkhglib("Testing")
       
  1154         else:
       
  1155             usecorrectpython()
  1152 
  1156 
  1153         if options.restart:
  1157         if options.restart:
  1154             orig = list(tests)
  1158             orig = list(tests)
  1155             while tests:
  1159             while tests:
  1156                 if os.path.exists(tests[0] + ".err"):
  1160                 if os.path.exists(tests[0] + ".err"):