tests/run-tests.py
branchstable
changeset 1355 238b6ca6d2bb
parent 1350 f541c0ba771c
child 1358 805a5c2fe9c8
equal deleted inserted replaced
1354:d8c31683af2e 1355:238b6ca6d2bb
   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: