]> gitweb.factorcode.org Git - factor.git/commitdiff
git: use with-test-directory.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 5 Sep 2017 02:45:25 +0000 (19:45 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 5 Sep 2017 02:45:25 +0000 (19:45 -0700)
extra/git/git-tests.factor

index b2c179ebd885ed57bcb0b81f2f7deaf8b47dd614..5022df4ba4ec685f41383566128d3b59c944ee81 100644 (file)
@@ -9,11 +9,9 @@ IN: git.tests
 
 : with-empty-test-git-repo ( quot -- )
     '[
-        [
-            { "git" "init" } run-process drop
-            @
-        ] cleanup-unique-directory
-    ] with-temp-directory ; inline
+        { "git" "init" } run-process drop
+        @
+    ] with-test-directory ; inline
 
 : with-zero-byte-file-repo ( quot -- )
     '[