Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: D01 test failure for prompts in dumb terminal
- X-seq: zsh-workers 51351
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: D01 test failure for prompts in dumb terminal
- Date: Thu, 2 Feb 2023 11:38:57 +0000
- Archived-at: <https://zsh.org/workers/51351>
- Feedback-id: i425e4195:Fastmail
- In-reply-to: <CAH+w=7YknETzYiRJJtyWRnSRTXFCzZZHsLUJq-hwQGOfPd36eA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7YknETzYiRJJtyWRnSRTXFCzZZHsLUJq-hwQGOfPd36eA@mail.gmail.com>
Bart Schaefer wrote on Wed, Feb 01, 2023 at 17:02:00 -0800:
> Subsequent to workers/51297 --
>
> In an xterm or gnome terminal, test D01 succeeds.
>
> In a shell running in an emacs buffer, I get (trimmed from ZTST_verbose=1)
>
> Running test: Equivalence of terminal colour settings (foreground colour)
> Test case skipped: Missing terminfo module or non-colour terminal
> Running test: Equivalence of terminal colour settings (background colour)
> Test case skipped: Missing terminfo module or non-colour terminal
> Running test: Attribute optimisation - preserve initial disabling of
> attribute but drop useless later one
> Test ./D01prompt.ztst failed: bad status 1, expected 0 from:
> A1=${(%):-%s}
> A2=${(%):-%u}
> A3=${(%):-%s%u%s}
> [[ $A3 = $A1$A2 && -n $A1 && -n $A2 ]]
> Was testing: Attribute optimisation - preserve initial disabling of
> attribute but drop useless later one
Any chance that $A1 or $A2 are the empty string?
> With ZTST_continue=1, that is the only test that fails. Perhaps it
> also needs to be skipped?
Skipped upon what condition? Skipping when $A1 is empty seems
reasonable, for example.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author