]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/automated/package-test.el (package-test-update-archives-async):
authorGlenn Morris <rgm@gnu.org>
Tue, 28 Apr 2015 01:33:01 +0000 (21:33 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 28 Apr 2015 01:33:01 +0000 (21:33 -0400)
Try to handle the test server script dying.

test/automated/package-test.el

index 4385ee0bd48f4823fe2f53feb4fc4ca506294602..1f8f8ac328989656a814fc449ade8fd485823c5a 100644 (file)
@@ -361,10 +361,13 @@ Must called from within a `tar-mode' buffer."
                (while package--downloads-in-progress
                  (accept-process-output nil 1))
                nil))
+            ;; If the server process died, there's some non-Emacs problem.
+            ;; Eg maybe the port was already in use.
+            (skip-unless (process-live-p process))
             (goto-char (point-min))
             (should
              (search-forward-regexp "^ +simple-single" nil t)))
-        (kill-process process)))))
+        (if (process-live-p process) (kill-process process))))))
 
 (ert-deftest package-test-describe-package ()
   "Test displaying help for a package."