aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVincent Belaïche2017-07-13 23:25:34 +0200
committerVincent Belaïche2017-07-13 23:25:34 +0200
commitab87dbad1d26fba4e33b62b4b5a840be77ae9aa5 (patch)
treeed0f2173d1cc363246db44102b52c78a5c75e952 /test
parentb048351a0f01124b770d6584c3797fde67e30793 (diff)
parent7eef16a923fa54ec0a88e00e75176a844dbd2944 (diff)
downloademacs-ab87dbad1d26fba4e33b62b4b5a840be77ae9aa5.tar.gz
emacs-ab87dbad1d26fba4e33b62b4b5a840be77ae9aa5.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in6
-rw-r--r--test/lisp/net/tramp-tests.el6
2 files changed, 9 insertions, 3 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 11373db8ca9..4e1a120d5c2 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -136,7 +136,8 @@ endif
136 $(AM_V_ELC)$(emacs) -f batch-byte-compile $< 136 $(AM_V_ELC)$(emacs) -f batch-byte-compile $<
137 137
138## Save logs, and show logs for failed tests. 138## Save logs, and show logs for failed tests.
139WRITE_LOG = > $@ 2>&1 || { STAT=$$?; cat $@; exit $$STAT; } 139WRITE_LOG = $(if $(and ${NIX_STORE}, $(findstring tramp, $@)), |& tee $@, > $@ 2>&1) \
140 || { STAT=$$?; cat $@; exit $$STAT; }
140 141
141ifeq ($(TEST_LOAD_EL), yes) 142ifeq ($(TEST_LOAD_EL), yes)
142testloadfile = $*.el 143testloadfile = $*.el
@@ -147,8 +148,7 @@ endif
147%.log: %.elc 148%.log: %.elc
148 $(AM_V_at)${MKDIR_P} $(dir $@) 149 $(AM_V_at)${MKDIR_P} $(dir $@)
149 $(AM_V_GEN)HOME=/nonexistent $(emacs) -l ert -l $(testloadfile) \ 150 $(AM_V_GEN)HOME=/nonexistent $(emacs) -l ert -l $(testloadfile) \
150 --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" \ 151 --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG}
151 $(if $(and ${NIX_STORE}, $(findstring tramp, $(testloadfile))), , ${WRITE_LOG})
152 152
153ifeq (@HAVE_MODULES@, yes) 153ifeq (@HAVE_MODULES@, yes)
154maybe_exclude_module_tests := 154maybe_exclude_module_tests :=
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 8001d9433a0..263e1359066 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3787,9 +3787,15 @@ process sentinels. They shall not disturb each other."
3787 (should-not (file-attributes file)) 3787 (should-not (file-attributes file))
3788 (should (file-attributes file))) 3788 (should (file-attributes file)))
3789 ;; Send string to process. 3789 ;; Send string to process.
3790 (tramp--test-message
3791 "Trace 1 action %d %s %s" count buf (current-time-string))
3790 (process-send-string proc (format "%s\n" (buffer-name buf))) 3792 (process-send-string proc (format "%s\n" (buffer-name buf)))
3793 (tramp--test-message
3794 "Trace 2 action %d %s %s" count buf (current-time-string))
3791 (accept-process-output proc 0.1 nil 0) 3795 (accept-process-output proc 0.1 nil 0)
3792 ;; Regular operation. 3796 ;; Regular operation.
3797 (tramp--test-message
3798 "Trace 3 action %d %s %s" count buf (current-time-string))
3793 (if (= count 2) 3799 (if (= count 2)
3794 (should-not (file-attributes file)) 3800 (should-not (file-attributes file))
3795 (should (file-attributes file))) 3801 (should (file-attributes file)))