* automated/tramp-tests.el (tramp--instrument-test-case):
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 29 Jun 2014 18:32:35 +0000 (20:32 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 29 Jun 2014 18:32:35 +0000 (20:32 +0200)
Print debug buffer in any case.

test/ChangeLog
test/automated/tramp-tests.el

index 617ac98..9b0f3ab 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-29  Michael Albinus  <michael.albinus@gmx.de>
+
+       * automated/tramp-tests.el (tramp--instrument-test-case):
+       Print debug buffer in any case.
+
 2014-06-28  Leo Liu  <sdl.web@gmail.com>
 
        * automated/calc-tests.el: New file and add tests for math-bignum.
index b010ab4..864a43d 100644 (file)
@@ -116,18 +116,15 @@ shall not contain a timeout."
   `(let ((tramp-verbose ,verbose)
         (tramp-message-show-message t)
         (tramp-debug-on-error t))
-     (condition-case err
+     (unwind-protect
         (progn ,@body)
-       (ert-test-skipped
-       (signal (car err) (cdr err)))
-       ((error quit)
-       (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
-         (with-current-buffer (tramp-get-connection-buffer v)
-           (message "%s" (buffer-string)))
-         (with-current-buffer (tramp-get-debug-buffer v)
-           (message "%s" (buffer-string))))
-       (message "%s" err)
-       (signal (car err) (cdr err))))))
+       (when (> tramp-verbose 3)
+        (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
+          (with-current-buffer (tramp-get-connection-buffer v)
+            (message "%s" (buffer-string)))
+          (with-current-buffer
+              (tramp-get-debug-buffer v)
+            (message "%s" (buffer-string))))))))
 
 (ert-deftest tramp-test00-availability ()
   "Test availability of Tramp functions."