]> git.notmuchmail.org Git - notmuch/commitdiff
test: resolve `basename "$0" .sh` once for all in test-lib.sh
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 25 Nov 2013 17:08:17 +0000 (19:08 +0200)
committerDavid Bremner <david@tethera.net>
Mon, 9 Dec 2013 15:25:28 +0000 (23:25 +0800)
test-lib.sh sometimes did equivalent of `basename "$0" .sh`, sometimes
skipping the basename part and sometimes .sh part. This worked as
we never had path components in $0 (more than ./) nor .sh ending.

Now the equivalent of `basename "$0" .sh` is done once and used
everywhere. In the future we may have .sh suffix in test names
-- removing those is a good idea.


No differences found