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: d65b2f7db05e6a2e99b691b4b0


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

revision:            d65b2f7db05e6a2e99b691b4b077794d9863cee3
date:                2011-02-13T08:43:12
author:              Richard Levitte <address@hidden>
branch:              net.venge.monotone
changelog:
* test/extra/bash_completion/__driver__.lua: Modify so we don't have that
  table of functions, it was not necessary, and probably mostly
  confusing.

manifest:
format_version "1"

new_manifest [1fe29943adc5a230a4ab15f9f4e63023320a3160]

old_revision [5aefcf775baf416114bc936940720fc196bef759]

patch "test/extra/bash_completion/__driver__.lua"
 from [d73c7818279d25d09614bc078061c37d9db1ea4e]
   to [8c059916005d8e8a88a439b5df05e7e5f257cda9]
============================================================
--- test/extra/bash_completion/__driver__.lua	d73c7818279d25d09614bc078061c37d9db1ea4e
+++ test/extra/bash_completion/__driver__.lua	8c059916005d8e8a88a439b5df05e7e5f257cda9
@@ -2,44 +2,7 @@ skip_if(qgrep("bash[, ]*version 3", "std
 check({"bash", "--version"}, 0, true)
 -- hashes/dictionaries/associative arrays are new in version 4
 skip_if(qgrep("bash[, ]*version 3", "stdout"))
-mtn_setup()
 
-local tests = {
-   ["complete_mtn_-"] = {
-      ["prepare"] = 
-	 function ()
-	 end,
-      ["cleanup"] =
-	 function ()
-	 end
-   },
-   ["complete_propagate"] = {
-      ["prepare"] = 
-	 function ()
-	    addfile("prop-test", "foo")
-	    commit("prop-br1")
-	    addfile("prop-test2", "bar")
-	    commit("prop-bra2")
-	    check(mtn("update","-r","h:prop-br1"), 0, false, false)
-	    writefile("prop-test", "zoot")
-	    commit("prop-br1")
-	 end,
-      ["cleanup"] =
-	 function ()
-	 end
-   },
-   ["complete_commit"] = {
-      ["prepare"] = 
-	 function ()
-	    addfile("commit-test1", "foo")
-	    addfile("commit-test2", "bar")
-	 end,
-      ["cleanup"] =
-	 function ()
-	 end
-   }
-}
-
 function expect(test)
    if monotone_path == nil then
       monotone_path = os.getenv("mtn")
@@ -62,8 +25,25 @@ get("library.exp")
 end
 
 get("library.exp")
-for test,fns in pairs(tests) do
-   fns.prepare()
-   expect(test)
-   fns.cleanup()
-end
+
+mtn_setup()
+
+-- complete_mtn_-
+expect("complete_mtn_-")
+
+-- complete_propagate
+addfile("prop-test", "foo")
+commit("prop-br1")
+addfile("prop-test2", "bar")
+commit("prop-bra2")
+check(mtn("update","-r","h:prop-br1"), 0, false, false)
+writefile("prop-test", "zoot")
+commit("prop-br1")
+
+expect("complete_propagate")
+
+-- complete_commit
+addfile("commit-test1", "foo")
+addfile("commit-test2", "bar")
+
+expect("complete_commit")

reply via email to

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