From: Lars Ingebrigtsen Date: Fri, 12 Nov 2021 07:56:51 +0000 (+0100) Subject: Delete .tar.gz temp file after tramp test X-Git-Tag: emacs-29.0.90~3668^2~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=81535cd8783d956cedd9a59263e77d2062c70197;p=emacs.git Delete .tar.gz temp file after tramp test * test/lisp/net/tramp-tests.el () (tramp-test45-dired-compress-dir): Delete the temp file (bug#51690). --- diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 3d6ce963eef..ffeb5420fe3 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -7029,7 +7029,8 @@ process sentinels. They shall not disturb each other." (should (string= (concat tmp-name ".tar.gz") (dired-get-filename))) (should-not (dired-compress)) (should (string= tmp-name (dired-get-filename))) - (delete-directory tmp-name))) + (delete-directory tmp-name) + (delete-file (concat tmp-name ".tar.gz")))) ;; This test is inspired by Bug#29163. (ert-deftest tramp-test46-auto-load ()