From: Eli Zaretskii <eliz@gnu.org>
To: Jim Porter <jporterbugs@gmail.com>
Cc: 62556@debbugs.gnu.org
Subject: bug#62556: 29.0.60; [PATCH] Fix regression when calling 'eshell-command' with a pipeline in the background
Date: Sat, 01 Apr 2023 09:35:16 +0300 [thread overview]
Message-ID: <83y1ncyusb.fsf@gnu.org> (raw)
In-Reply-To: <84b09e1c-7670-0f4d-fb26-ed33010214e5@gmail.com> (message from Jim Porter on Fri, 31 Mar 2023 13:09:24 -0700)
> Date: Fri, 31 Mar 2023 13:09:24 -0700
> Cc: 62556@debbugs.gnu.org
> From: Jim Porter <jporterbugs@gmail.com>
>
> Thanks. Merged to emacs-29 as 6419d78fa6f.
Some of the new tests (and one old as well) fail on MS-Windows:
3 unexpected results:
FAILED eshell-test/eshell-command/background
FAILED eshell-test/eshell-command/background-pipeline
FAILED eshell-test/subcommand-reset-in-pipeline
I fixed the first 2, but I don't understand what goes wrong in the
last one and why:
Test eshell-test/subcommand-reset-in-pipeline backtrace:
signal(ert-test-failed (((should (eshell-command-result--equal comma
ert-fail(((should (eshell-command-result--equal command (eshell-test
(if (unwind-protect (setq value-7 (apply fn-5 args-6)) (setq form-de
(let (form-description-9) (if (unwind-protect (setq value-7 (apply f
(let ((value-7 'ert-form-evaluation-aborted-8)) (let (form-descripti
(let* ((fn-5 #'eshell-command-result--equal) (args-6 (condition-case
eshell-command-result-equal("*cat $<echo $eshell-in-pipeline-p | ech
(let ((template (car tail))) (eshell-command-result-equal (format te
(while tail (let ((template (car tail))) (eshell-command-result-equa
(let ((tail '("echo {%s} | *cat" "echo ${%s} | *cat" "*cat $<%s> | *
(closure (t) nil (let* ((fn-31 #'executable-find) (args-32 (conditio
ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
ert-run-test(#s(ert-test :name eshell-test/subcommand-reset-in-pipel
ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
command-line-1(("-L" ";." "-l" "ert" "-l" "lisp/eshell/eshell-tests.
command-line()
normal-top-level()
Test eshell-test/subcommand-reset-in-pipeline condition:
(ert-test-failed
((should
(eshell-command-result--equal command
(eshell-test-command-result command)
result))
:form
(eshell-command-result--equal "*cat $<echo $eshell-in-pipeline-p | echo> | *cat" nil "first")
:value nil :explanation
(nonequal-result
(command "*cat $<echo $eshell-in-pipeline-p | echo> | *cat")
(result nil)
(expected "first"))))
FAILED 16/16 eshell-test/subcommand-reset-in-pipeline (1.796875 sec) at lisp/eshell/eshell-tests.el:80
The test that fails is this one:
(eshell-command-result-equal
(format template "echo $eshell-in-pipeline-p | echo")
"first")
when it is run for the last template, "*cat $<%s> | *cat".
As another annoyance, I get this prompt, and must type "yes RET":
passed 1/16 eshell-test/command-running-p (0.203125 sec)
passed 2/16 eshell-test/eshell-command/background (0.015625 sec)
Buffer "*Eshell Async Command Output*" has a running process; kill it? (yes or no) yes
passed 3/16 eshell-test/eshell-command/background-pipeline (2.453125 sec)
Any suggestions?
next prev parent reply other threads:[~2023-04-01 6:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-31 4:18 bug#62556: 29.0.60; [PATCH] Fix regression when calling 'eshell-command' with a pipeline in the background Jim Porter
2023-03-31 6:29 ` Eli Zaretskii
2023-03-31 20:09 ` Jim Porter
2023-04-01 6:35 ` Eli Zaretskii [this message]
2023-04-01 7:36 ` Jim Porter
2023-04-01 8:05 ` Eli Zaretskii
2023-04-01 17:31 ` Jim Porter
2023-04-02 22:09 ` Jim Porter
2023-04-06 10:32 ` Eli Zaretskii
2023-04-06 18:08 ` Jim Porter
2023-04-06 18:28 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y1ncyusb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=62556@debbugs.gnu.org \
--cc=jporterbugs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).