Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] tests: improve readability
- X-seq: zsh-workers 54682
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Philippe Altherr <philippe.altherr@xxxxxxxxx>, dana <dana@xxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [PATCH] tests: improve readability
- Date: Fri, 5 Jun 2026 21:24:33 +0200
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/0ZwujvdH3wcFCStPlTW9Rxe26vhBrSm+Efcl3Mf8ZQ=; fh=Mesv59isMv4rBrEF1rYPrksx/0KdrC8txeL5hmSGj9E=; b=Bq0izbjTvQVE1691MMHBP1EIgI7Grc6RyHf8FGLtvx1uDTn8O4QktBnlDVeLnKXpFi tXPS5nkDenTi+RLDK5Hj7i8UzUaNNDndEs6AO06ZEi5ceUKZVX8JkGSu0Eo6tjrIUlvk H6aPNcYIAjIZGkxvXltEwnyWtQBVhd/ks8rDk5tQAsif6jQ0Onkgb2LFsua1IT/2G2+k 3xYmKwlvZv+m71dbEjPax5EbKPhqDHpWPp+vmdI5s3EpACpRakyKdwV6kMZ2uaPZ71Fa Y+AxlkDCaKGZPzttvx9xrowNpkgzME3cAxbNb2dU+VOl+cAxu5oNwXKTWg/M+u49BVau KM0w==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1780687487; cv=none; d=google.com; s=arc-20240605; b=TspjpbErPQwQmTsiP/8pSS6IdehEDhFsGbWA3PES46P3eLcwu3aB5hVfA8inyUmmI8 ftsM+xQ+zP5mUFZfZQSsSPG9xJe2QtTMa9+K63NSTLSYGrREt9LAKktx0IJeVI9+i3ai EhJGbwWwPzjMkyQtY2toCPbUHWJFtska9OtLuHLA43hD+qRYeLFPmIW0R44Et06d+YSM vwcH/6OyBQelWNvpIDdepMqxdOIAXiv2cXxrOxTIrZdMYw+1wvTZzm4uFcS6btbV3hN3 ZjFi4r4wKXJnRUbfw7XGTzHYs662Jmjs5aB/OYlhchfqH1IiJymEgcuHUJUPHh4hNzQb lICw==
- Archived-at: <https://zsh.org/workers/54682>
- In-reply-to: <CAH+w=7a4Nz_EWepCwQeRB9ip95d6ecgJBA5Z-_jmmKEgN8Bh5A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <e7c0c05f-988f-4837-ad14-6157e75ca5ea@app.fastmail.com> <783256270.579404.1780648068574@mail.virginmedia.com> <CAGdYcht84XMPPfUBbrvubmLkV5B32eXt+PL8FztDxsiPSU=qDg@mail.gmail.com> <CAGdYchsxjwbG8w_se=_YPKsTbB0WNy+TNpuV2bHQT6uJbFRakA@mail.gmail.com> <CAH+w=7a4Nz_EWepCwQeRB9ip95d6ecgJBA5Z-_jmmKEgN8Bh5A@mail.gmail.com>
On Fri, Jun 5, 2026 at 7:50 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Jun 5, 2026 at 10:14 AM Philippe Altherr
> <philippe.altherr@xxxxxxxxx> wrote:
> >>
> >> My recommendations/wishes:
> >>
> >> Put at least the main summary line and the star lines in bold
> >> Use more fine grained coloring for the summary line (see results of my sed command)
> >> Put the star lines in red if there are any failures and otherwise in green (and maybe in cyan if there are only skipped files)
> >
> > I forgot the most useful: use a third color to highlight messages, like ones for skipped test files/cases, that are neither error nor success messages. Without highlighting, I have a hard time noticing these messages.
> >
> > Philippe
> >
>
> My only input on this:
>
> Please do take non-interactive builds into account. We've had people
> who build binary distribution packages report issues with the test
> suit before.
>
> Rather than make a lot of changes to the test output itself, maybe
> create something like Philippe's sed as a coprocess to filter the
> output (and then using that only for interactive sessions).
On Fri, Jun 5, 2026 at 10:28 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> One bane of my life in other tests systems is that files are full
> of escape sequences because they don't take account of the difference between interactive and non-interactive contexts,
> so I'm forever running my remove-escapes Emacs function, but from
> what you say you might well have thought of that already.
The code checks [[ -t 1 ]] to gate coloring the output, so this
shouldn't be a problem.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author