tests/run-tests.py
changeset 5264 b817d17c7ee5
parent 5247 90919a6f5c8f
child 5265 980da86fc66a
equal deleted inserted replaced
5263:d59ed18ec2d0 5264:b817d17c7ee5
   132 def install_hg():
   132 def install_hg():
   133     global python
   133     global python
   134     vlog("# Performing temporary installation of HG")
   134     vlog("# Performing temporary installation of HG")
   135     installerrs = os.path.join("tests", "install.err")
   135     installerrs = os.path.join("tests", "install.err")
   136 
   136 
   137     os.chdir("..") # Get back to hg root
   137     # Run installer in hg root
       
   138     os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..'))
   138     cmd = ('%s setup.py clean --all'
   139     cmd = ('%s setup.py clean --all'
   139            ' install --force --home="%s" --install-lib="%s"'
   140            ' install --force --home="%s" --install-lib="%s"'
   140            ' --install-scripts="%s" >%s 2>&1'
   141            ' --install-scripts="%s" >%s 2>&1'
   141            % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs))
   142            % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs))
   142     vlog("# Running", cmd)
   143     vlog("# Running", cmd)