]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete .tar.gz temp file after tramp test
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Nov 2021 07:56:51 +0000 (08:56 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Nov 2021 07:56:55 +0000 (08:56 +0100)
* test/lisp/net/tramp-tests.el ()
(tramp-test45-dired-compress-dir): Delete the temp file (bug#51690).

test/lisp/net/tramp-tests.el

index 3d6ce963eef4a1a8d938f288f4a174e7046dccae..ffeb5420fe3662d8ed5652790406d6b8796f9a7d 100644 (file)
@@ -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 ()