Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1f08279e
Commit
1f08279e
authored
Jul 13, 2017
by
Michael Albinus
Browse files
; Improve tramp-tests traces
parent
dde7f2d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
test/Makefile.in
test/Makefile.in
+3
-3
test/lisp/net/tramp-tests.el
test/lisp/net/tramp-tests.el
+6
-0
No files found.
test/Makefile.in
View file @
1f08279e
...
...
@@ -136,7 +136,8 @@ endif
$(AM_V_ELC)$(emacs)
-f
batch-byte-compile
$<
## Save logs, and show logs for failed tests.
WRITE_LOG
=
>
$@
2>&1
||
{
STAT
=
$$
?
;
cat
$@
;
exit
$$
STAT
;
}
WRITE_LOG
=
$(
if
$(
and
${NIX_STORE}
,
$(
findstring
tramp,
$@
))
, |&
tee
$@
,
>
$@
2>&1
)
\
||
{
STAT
=
$$
?
;
cat
$@
;
exit
$$
STAT
;
}
ifeq
($(TEST_LOAD_EL), yes)
testloadfile
=
$*
.el
...
...
@@ -147,8 +148,7 @@ 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}
)"
\
$(
if
$(
and
${NIX_STORE}
,
$(
findstring
tramp,
$(testloadfile)
))
, ,
${WRITE_LOG}
)
--eval
"(ert-run-tests-batch-and-exit
${SELECTOR_ACTUAL}
)"
${WRITE_LOG}
ifeq
(@HAVE_MODULES@, yes)
maybe_exclude_module_tests
:=
...
...
test/lisp/net/tramp-tests.el
View file @
1f08279e
...
...
@@ -3787,9 +3787,15 @@ process sentinels. They shall not disturb each other."
(should-not (file-attributes file))
(should (file-attributes file)))
;; Send string to process.
(tramp--test-message
"Trace 1 action %d %s %s" count buf (current-time-string))
(process-send-string proc (format "%s\n" (buffer-name buf)))
(tramp--test-message
"Trace 2 action %d %s %s" count buf (current-time-string))
(accept-process-output proc 0.1 nil 0)
;; Regular operation.
(tramp--test-message
"Trace 3 action %d %s %s" count buf (current-time-string))
(if (= count 2)
(should-not (file-attributes file))
(should (file-attributes file)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment