]> git.notmuchmail.org Git - notmuch/commitdiff
test-lib.sh: pass 'NOTMUCH_NEW's args down to 'notmuch new'
authorPieter Praet <pieter@praet.org>
Sun, 19 Feb 2012 20:47:55 +0000 (21:47 +0100)
committerDavid Bremner <bremner@debian.org>
Sat, 20 Oct 2012 20:28:34 +0000 (17:28 -0300)
Obviates the need to create a 'NOTMUCH_NEW' clone which runs
'notmuch new --debug'.  This will be used in a later patch.

Doesn't cause any issues for other tests.

test/test-lib.sh

index 8de5e32fd920e83ed1015d2337a19387ddb16ca2..568e89f18024cc8e4350236e8ca0eb3dad3dd4c9 100644 (file)
@@ -555,7 +555,7 @@ test_emacs_expect_t () {
 
 NOTMUCH_NEW ()
 {
-    notmuch new | grep -v -E -e '^Processed [0-9]*( total)? file|Found [0-9]* total file'
+    notmuch new "${@}" | grep -v -E -e '^Processed [0-9]*( total)? file|Found [0-9]* total file'
 }
 
 notmuch_search_sanitize ()