[issue638] BINDIR not created in run-tests.py/use_correct_python
Ralf Schmitt
mercurial-bugs at selenic.com
Thu Jul 19 06:30:05 CDT 2007
New submission from Ralf Schmitt <schmir at gmail.com>:
$ make test-archive
cd tests && python run-tests.py test-archive
Traceback (most recent call last):
File "run-tests.py", line 393, in <module>
install_hg()
File "run-tests.py", line 156, in install_hg
use_correct_python()
File "run-tests.py", line 126, in use_correct_python
os.symlink(sys.executable, my_python)
OSError: [Errno 2] No such file or directory
make: *** [test-archive] Error 1
I use the following fix:
diff -r b8076522e889 tests/run-tests.py
--- a/tests/run-tests.py Wed Jul 18 14:00:55 2007 -0700
+++ b/tests/run-tests.py Thu Jul 19 13:20:54 2007 +0200
@@ -122,6 +122,7 @@ def use_correct_python():
return
vlog('# Making python executable in test path use correct Python')
my_python = os.path.join(BINDIR, 'python')
+ os.makedirs(BINDIR)
try:
os.symlink(sys.executable, my_python)
except AttributeError:
also, a lot of tests seem to fail in crew-stable. is this normal?
----------
messages: 3551
nosy: schmir
priority: bug
status: unread
title: BINDIR not created in run-tests.py/use_correct_python
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue638>
____________________________________________________
More information about the Mercurial-devel
mailing list