]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/automated/package-test.el (with-package-test): Kill Packages buffer
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 12 Apr 2015 15:10:22 +0000 (16:10 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 12 Apr 2015 15:16:06 +0000 (16:16 +0100)
test/automated/package-test.el

index 2fbcfd061408df518d6a25961f2c399cb96cbf89..4385ee0bd48f4823fe2f53feb4fc4ca506294602 100644 (file)
                 '((package-test-archive-upload-base (make-temp-file "pkg-archive-base-" t))
                   (package-archive-upload-base package-test-archive-upload-base))
               (list (cl-gensym)))) ;; Dummy value so `let' doesn't try to bind `nil'
+     (let ((buf (get-buffer "*Packages*")))
+       (when (buffer-live-p buf)
+         (kill-buffer buf)))
      (unwind-protect
          (progn
            ,(if basedir `(cd ,basedir))