comparison tests/run-tests.py @ 5264:b817d17c7ee5

Make run-tests.py work when invoked outside of tests. This makes it usable for unbundled extensions.
author Brendan Cully <brendan@kublai.com>
date Wed, 29 Aug 2007 16:50:21 -0700
parents 90919a6f5c8f
children 980da86fc66a
comparison
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)