[pypy-svn] r59804 - pypy/build/testrunner

fijal at codespeak.net fijal at codespeak.net
Sat Nov 8 15:48:21 CET 2008


Author: fijal
Date: Sat Nov  8 15:48:21 2008
New Revision: 59804

Modified:
   pypy/build/testrunner/runner.py
Log:
try to preserve paths


Modified: pypy/build/testrunner/runner.py
==============================================================================
--- pypy/build/testrunner/runner.py	(original)
+++ pypy/build/testrunner/runner.py	Sat Nov  8 15:48:21 2008
@@ -56,6 +56,10 @@
 
 
 def run_scratchbox(args, cwd, out, timeout=None):
+    username = os.getlogin()
+    scratchboxdir = '/scratchbox/users/%s/home/%s' % (username, username)
+    if cwd.startswith(scratchboxdir):
+        cwd = cwd.lstrip(scratchboxdir)
     return run(args_for_scratchbox(cwd, args), cwd, out, timeout)
 
 def dry_run(args, cwd, out, timeout=None):



More information about the Pypy-commit mailing list