Re: [PATCH] test: prepare test-lib.sh for possible test system debug session

Subject: Re: [PATCH] test: prepare test-lib.sh for possible test system debug session

Date: Mon, 19 Jan 2015 08:38:05 +0100

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


Tomi Ollila <tomi.ollila@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

Thread: