]> git.notmuchmail.org Git - notmuch/commit
test: Disentangle execution of notmuch from the examination of the results.
authorCarl Worth <cworth@cworth.org>
Thu, 15 Apr 2010 20:44:00 +0000 (13:44 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 15 Apr 2010 21:13:12 +0000 (14:13 -0700)
commit3846c1d12c2445bc2a4d118682eb335ee90dd92e
treea95e16773e09b53ab2f2aefc603d6376eafed886
parent6847960a585b9816907b313e54e7572e0fdfdc85
test: Disentangle execution of notmuch from the examination of the results.

The old execute_expecting function was doing far too much for its own
good.  One of the worst aspects of this was that it introduced
shell-quoting challengers where the caller could not easily control
the precise invocation of the command to be executed.

I personally couldn't find a way to test "notmuch search '*'" without
the shell expanding * against files in the current directory, or
having bogus quotation marks appearing in the search string,
(defeating the recognition of "*" as a special search term).

Hopefully this aspect of the test suite will be much easier to maintain now.
test/notmuch-test