unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test/T000-basic: replaced use of which(1) with shell builtin command -v
@ 2016-10-09 18:48 Tomi Ollila
  2016-10-12  1:49 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Tomi Ollila @ 2016-10-09 18:48 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

Some minimal chroot/container environments don't have which(1) installed.
---
 test/T000-basic.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/T000-basic.sh b/test/T000-basic.sh
index d6811bd10756..0a8d6cdf40fc 100755
--- a/test/T000-basic.sh
+++ b/test/T000-basic.sh
@@ -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
-- 
2.8.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test/T000-basic: replaced use of which(1) with shell builtin command -v
  2016-10-09 18:48 [PATCH] test/T000-basic: replaced use of which(1) with shell builtin command -v Tomi Ollila
@ 2016-10-12  1:49 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2016-10-12  1:49 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

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

> Some minimal chroot/container environments don't have which(1) installed.
pushed to master

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-12  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09 18:48 [PATCH] test/T000-basic: replaced use of which(1) with shell builtin command -v Tomi Ollila
2016-10-12  1:49 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).