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

fijal at codespeak.net fijal at codespeak.net
Sat Nov 8 17:05:45 CET 2008


Author: fijal
Date: Sat Nov  8 17:05:44 2008
New Revision: 59815

Modified:
   pypy/build/testrunner/scratchbox_runner.py
Log:
don't do this alltogether as -d is smart enougfh


Modified: pypy/build/testrunner/scratchbox_runner.py
==============================================================================
--- pypy/build/testrunner/scratchbox_runner.py	(original)
+++ pypy/build/testrunner/scratchbox_runner.py	Sat Nov  8 17:05:44 2008
@@ -6,11 +6,6 @@
 import os
 
 def args_for_scratchbox(cwd, args):
-    username = os.environ['HOME'].split(os.sep)[-1]
-    scratchboxdir = '/scratchbox/users/%s/home/%s' % (username, username)
-    cwd = str(cwd)
-    if cwd.startswith(scratchboxdir):
-        cwd = cwd.lstrip(scratchboxdir)
     return ['/scratchbox/login', '-d', str(cwd)] + args
 
 def run_scratchbox(args, cwd, out, timeout=None):



More information about the Pypy-commit mailing list