test/T000-basic: replaced use of which(1) with shell builtin command -v

Some minimal chroot/container environments don't have which(1) installed.
This commit is contained in:
Tomi Ollila 2016-10-09 21:48:29 +03:00 committed by David Bremner
parent 5d05523659
commit 6a3ce94aaf

View file

@ -92,7 +92,7 @@ test_expect_equal \
"$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')"
test_begin_subtest 'notmuch is compiled with debugging symbols'
readelf --sections $(which notmuch) | grep \.debug
readelf --sections $(command -v notmuch) | grep \.debug
test_expect_equal 0 $?
test_done