Re: [PATCH 2/2] allow keeping output of potentially failed tests
From:
Chet Ramey
Subject:
Re: [PATCH 2/2] allow keeping output of potentially failed tests
Date:
Wed, 15 Oct 2025 10:06:47 -0400
User-agent:
Mozilla Thunderbird
On 10/7/25 9:55 AM, Alexander Bantyev wrote:
Previously if a test produced a diff, the only way to fix it was to
inspect the test output.
We introduce the BASH_TSTOUT_KEEPDIR environment variable which is
expected to point to a directory.
If set, that directory will be populated with output from all failed
tests, with test names as file names.
This is a good idea. I added -${SUFFIX} to the test name when saving to
allow reuse of the save directory, and changed the name to BASH_TSTOUT_SAVEDIR.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/