[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 46a681e: ; Enable traces for tramp-tests.el on hydr
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 46a681e: ; Enable traces for tramp-tests.el on hydra |
Date: |
Wed, 12 Jul 2017 08:54:00 -0400 (EDT) |
branch: master
commit 46a681e4e1463d355c458df08d0f6403335aba05
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
; Enable traces for tramp-tests.el on hydra
---
test/Makefile.in | 3 ++-
test/lisp/net/tramp-tests.el | 14 ++++++++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/test/Makefile.in b/test/Makefile.in
index 414eca9..11373db 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -147,7 +147,8 @@ endif
%.log: %.elc
$(AM_V_at)${MKDIR_P} $(dir $@)
$(AM_V_GEN)HOME=/nonexistent $(emacs) -l ert -l $(testloadfile) \
- --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})"
${WRITE_LOG}
+ --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" \
+ $(if $(and ${NIX_STORE}, $(findstring tramp, $(testloadfile))), ,
${WRITE_LOG})
ifeq (@HAVE_MODULES@, yes)
maybe_exclude_module_tests :=
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 6c02daa..8001d94 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3729,13 +3729,17 @@ process sentinels. They shall not disturb each other."
(let ((default-directory tmp-name)
(file
(buffer-name (nth (random (length buffers))
buffers))))
- (funcall timer-operation file))))))
+ (tramp--test-message
+ "Start timer %s %s" file (current-time-string))
+ (funcall timer-operation file)
+ (tramp--test-message
+ "Stop timer %s %s" file (current-time-string)))))))
;; Create temporary buffers. The number of buffers
;; corresponds to the number of processes; it could be
;; increased in order to make pressure on Tramp.
(dotimes (_i number-proc)
- (add-to-list 'buffers (generate-new-buffer "foo")))
+ (setq buffers (cons (generate-new-buffer "foo") buffers)))
;; Open asynchronous processes. Set process filter and sentinel.
(dolist (buf buffers)
@@ -3776,6 +3780,8 @@ process sentinels. They shall not disturb each other."
(proc (get-buffer-process buf))
(file (process-get proc 'foo))
(count (process-get proc 'bar)))
+ (tramp--test-message
+ "Start action %d %s %s" count buf (current-time-string))
;; Regular operation.
(if (= count 0)
(should-not (file-attributes file))
@@ -3787,6 +3793,8 @@ process sentinels. They shall not disturb each other."
(if (= count 2)
(should-not (file-attributes file))
(should (file-attributes file)))
+ (tramp--test-message
+ "Stop action %d %s %s" count buf (current-time-string))
(process-put proc 'bar (1+ count))
(unless (process-live-p proc)
(setq buffers (delq buf buffers))))))
@@ -3794,6 +3802,8 @@ process sentinels. They shall not disturb each other."
;; Checks. All process output shall exists in the
;; respective buffers. All created files shall be
;; deleted.
+ (tramp--test-message
+ "Check %s" (current-time-string))
(dolist (buf buffers)
(with-current-buffer buf
(should (string-equal (format "%s\n" buf) (buffer-string)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 46a681e: ; Enable traces for tramp-tests.el on hydra,
Michael Albinus <=