]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/automated/eshell.el (eshell-test-command-result): Clean up when done
authorGlenn Morris <rgm@gnu.org>
Fri, 13 Sep 2013 16:16:57 +0000 (09:16 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 Sep 2013 16:16:57 +0000 (09:16 -0700)
test/automated/eshell.el

index d5ebc5672817e16ee37cebd4be9af81a86226261..f9061ceb57ce13c4de69653186c98460ed404d0e 100644 (file)
@@ -60,7 +60,9 @@
   "Like `eshell-command-result', but not using HOME."
   (let ((eshell-directory-name (make-temp-file "eshell" t))
         (eshell-history-file-name nil))
-    (eshell-command-result command)))
+    (unwind-protect
+        (eshell-command-result command)
+      (delete-directory eshell-directory-name t))))
 
 ;;; Tests: