]> rtime.felk.cvut.cz Git - notmuch.git/commit
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)
commit5985438e057b51404208458fceadd03aae13eb80
tree03d6aa8e879959e079ed57a85488fe5ba8bd7404
parentbb390f89a1599f4767fbf7fc7cb1f01aba22b9ae
test: resolve `basename "$0" .sh` once for all in test-lib.sh

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.
test/test-lib.sh