]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up temporary files after package tests
authorStefan Kangas <stefan@marxist.se>
Fri, 23 Oct 2020 10:56:39 +0000 (12:56 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 23 Oct 2020 10:58:01 +0000 (12:58 +0200)
* test/lisp/emacs-lisp/package-tests.el (with-package-test): Remove
temporary files after test.  (Bug#43359)

test/lisp/emacs-lisp/package-tests.el

index 155a8e6fce9a4ed2da06672fcebd6780ebd9dbc0..23267545f830ab3d29a30751e920e268b69ed817 100644 (file)
                     `(insert-file-contents ,file))
                ,@body)))
 
+       (when ,upload-base
+         (dolist (f '("archive-contents"
+                      "simple-single-1.3.el"
+                      "simple-single-1.4.el"
+                      "simple-single-readme.txt"))
+           (ignore-errors
+             (delete-file
+              (expand-file-name f package-test-archive-upload-base))))
+         (delete-directory package-test-archive-upload-base))
        (when (file-directory-p package-test-user-dir)
          (delete-directory package-test-user-dir t))