summaryrefslogtreecommitdiff
path: root/test/withrepo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/withrepo.lua')
-rw-r--r--test/withrepo.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/withrepo.lua b/test/withrepo.lua
new file mode 100644
index 0000000..2343fae
--- /dev/null
+++ b/test/withrepo.lua
@@ -0,0 +1,13 @@
+-- test/withrepo.lua
+--
+-- Gall -- Test utilities for when you have repositories
+--
+
+local _xpcall = xpcall
+
+function xpcall(fn, tb)
+ os.execute("rm -rf test/test_repo")
+ local ok, msg = _xpcall(fn, tb)
+ os.execute("rm -rf test/test_repo")
+ return ok, msg
+end