[PATCH] test: prepare test-lib.sh for possible test system debug session
David Bremner
david at tethera.net
Sun Jan 18 23:38:05 PST 2015
Tomi Ollila <tomi.ollila at iki.fi> writes:
> When something in tests fails one possibility to test is to run
> the test script as `bash -x TXXX-testname.sh`. As stderr (fd 2) was
> redirected to separate file during test execution also this set -x
> (xtrace) output would also go there.
> test-lib.sh saves the stderr to fd 7 from where it can be restored,
> and bash has BASH_XTRACEFD variable, which is now given the same value
> 7, making bash to output all xtrade information (consistently)
pushed.
d
More information about the notmuch
mailing list