Subject: bug#59317: 29.0.50; Feature idea: suppress `message' output in ert batch test output

From: Eli Zaretskii <[email-masked]>
Date: Wed, 16 Nov 2022 21:54:09 +0200

> From: Matt Armstrong <[email-masked]>
> Date: Wed, 16 Nov 2022 10:52:11 -0800
> 
> A good number of Emacs tests exercise parts of Emacs that call
> `message'.

Are you sure?  Many Emacs features display text that doesn't go
through 'message'.

> Idea: hide `message' output when running in batch mode, printing them
> only for failed tests.

We have set-message-function that could be used for this purpose, I
think?  If indeed 'message' is the culprit.