* test/automated/eshell.el (eshell-test-command-result): Clean up when done

This commit is contained in:
Glenn Morris 2013-09-13 09:16:57 -07:00
parent 6ad9cb087a
commit bc2c0769db

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