monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone: a2b70fe6724237422aa5308a30


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone: a2b70fe6724237422aa5308a3056529e8ae12fbd
Date: Fri, 18 Feb 2011 20:54:37 +0100 (CET)

revision:            a2b70fe6724237422aa5308a3056529e8ae12fbd
date:                2011-02-13T13:08:17
author:              Richard Levitte <address@hidden>
branch:              net.venge.monotone
changelog:
* test/extra/mtn-cleanup/__driver__.lua: Copy 'run-mtn-cleanup' to the
  current working directory instead of running it from source.  The
  reason is that tests should run in their own sandboxes as much as
  possible.
* test/extra/mtn-cleanup/run-mtn-cleanup: Remove 'set -x' and add a note
  on what the current working directory is.


manifest:
format_version "1"

new_manifest [fd7f881faa1816f8cf59fd26401773bc808571ba]

old_revision [d2a4f451559f9c775a39e9d0d671bb7a10db4c4d]

patch "test/extra/mtn-cleanup/__driver__.lua"
 from [71bb16f84c2b0baf423ac5f04185b11c848642de]
   to [c0a63dd6bbb69d30db6f6b64f7d59f2b5f1d00c7]

patch "test/extra/mtn-cleanup/run-mtn-cleanup"
 from [7cbf07edf271a2491e51fefb8df88c5bdbf0ee2d]
   to [2852670652f5beef553ec756f1522f2a54476fdc]
============================================================
--- test/extra/mtn-cleanup/__driver__.lua	71bb16f84c2b0baf423ac5f04185b11c848642de
+++ test/extra/mtn-cleanup/__driver__.lua	c0a63dd6bbb69d30db6f6b64f7d59f2b5f1d00c7
@@ -1,5 +1,8 @@ mtn_setup()
 mtn_setup()
 
+-- Get helper scripts
+check(get("run-mtn-cleanup"))
+
 -- We do everything inside an inner workspace.  mtn-cleanup IS a dangerous
 -- command, and will happily wipe away any database that's in the workspace
 check(mtn("setup", "--branch=testbranch", "workspace"), 0, false, false)
@@ -14,8 +17,7 @@ writefile("workspace/test3", "baz")
 check(indir("workspace", mtn("add", "test2")), 0, false, false)
 writefile("workspace/test3", "baz")
 
-check(indir("workspace",
-	    {srcdir.."/extra/mtn-cleanup/run-mtn-cleanup",srcdir,test.root}),
+check(indir("workspace", {"./run-mtn-cleanup",srcdir,test.root}),
       0, true, false)
 check(exists("workspace/test1"))
 xfail(exists("workspace/test2"))
============================================================
--- test/extra/mtn-cleanup/run-mtn-cleanup	7cbf07edf271a2491e51fefb8df88c5bdbf0ee2d
+++ test/extra/mtn-cleanup/run-mtn-cleanup	2852670652f5beef553ec756f1522f2a54476fdc
@@ -2,6 +2,7 @@
 
 # $1	{srcdir}/test
 # $2	{builddir}/test/work/extra/mtn-cleanup
+# Current work directory should be
+# {builddir}/test/work/extra/mtn-cleanup/workspace
 
-set -x
 yes | PATH=${2}/../../../..:${PATH} ${1}/../extra/bin/mtn-cleanup 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]