Re: [PATCH] test/test-lib.sh: execute basename(1)s lazier in test_expect_equal_file ()

Subject: Re: [PATCH] test/test-lib.sh: execute basename(1)s lazier in test_expect_equal_file ()

Date: Tue, 25 Oct 2016 22:04:23 -0300

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:

> Moved the 2 basename(1) executions to the test failure branch in
> test_expect_equal_file ().
>
> The output of basename(1) executions in function test_expect_equal_file ()
> are only used when tests fails -- when all tests pass these 2 basename(1)
> executions are no longer done at all.

I challenge you to measure the improvement; pushed to master anyway. ;)

d

Thread: