tests/run-tests.py
changeset 20680 d3d3e94e2910
parent 20622 352abbb0be88
child 20793 60c175c1e708
equal deleted inserted replaced
20679:0916f829eb8d 20680:d3d3e94e2910
   477         nohome = ''
   477         nohome = ''
   478     cmd = ('%(exe)s setup.py %(py3)s %(pure)s clean --all'
   478     cmd = ('%(exe)s setup.py %(py3)s %(pure)s clean --all'
   479            ' build %(compiler)s --build-base="%(base)s"'
   479            ' build %(compiler)s --build-base="%(base)s"'
   480            ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"'
   480            ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"'
   481            ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1'
   481            ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1'
   482            % dict(exe=sys.executable, py3=py3, pure=pure, compiler=compiler,
   482            % {'exe': sys.executable, 'py3': py3, 'pure': pure,
   483                   base=os.path.join(HGTMP, "build"),
   483               'compiler': compiler, 'base': os.path.join(HGTMP, "build"),
   484                   prefix=INST, libdir=PYTHONDIR, bindir=BINDIR,
   484               'prefix': INST, 'libdir': PYTHONDIR, 'bindir': BINDIR,
   485                   nohome=nohome, logfile=installerrs))
   485               'nohome': nohome, 'logfile': installerrs})
   486     vlog("# Running", cmd)
   486     vlog("# Running", cmd)
   487     if os.system(cmd) == 0:
   487     if os.system(cmd) == 0:
   488         if not options.verbose:
   488         if not options.verbose:
   489             os.remove(installerrs)
   489             os.remove(installerrs)
   490     else:
   490     else: