[PATCH] convert: set HOME to cwd in several cvs tests (issue2707)

Idan K idankk86 at gmail.com
Fri Mar 25 05:02:53 CDT 2011


On Fri, Mar 25, 2011 at 1:42 AM, Matt Mackall <mpm at selenic.com> wrote:
>
> On Fri, 2011-03-25 at 01:26 +0200, Idan Kamara wrote:
> > # HG changeset patch
> > # User Idan Kamara <idankk86 at gmail.com>
> > # Date 1301009090 -7200
> > # Node ID 59148bb56a1ac766db4948df822f4d0d0c8fe15f
> > # Parent  78a0a815fd41d794550d12428362cd51b261c1c6
> > convert: set HOME to cwd in several cvs tests (issue2707)
> >
> > convert cvs creates a cache dir under $HOME, causing some
> > tests to fail if it's not writable
>
> Is there a reason we can't do this in the test harness itself and
> thereby get this automatically for all tests?
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>

Would this do it?

diff -r 59148bb56a1a tests/run-tests.py
--- a/tests/run-tests.py        Fri Mar 25 01:24:50 2011 +0200
+++ b/tests/run-tests.py        Fri Mar 25 11:59:15 2011 +0200
@@ -694,7 +694,7 @@
         runner = shtest

     # Make a tmp subdirectory to work in
-    testtmp = os.environ["TESTTMP"] = os.path.join(HGTMP, test)
+    testtmp = os.environ["TESTTMP"] = os.environ["HOME"] =
os.path.join(HGTMP, test)
     os.mkdir(testtmp)
     os.chdir(testtmp)


More information about the Mercurial-devel mailing list