[PATCH 5/6] test-lib.sh: pass 'NOTMUCH_NEW's args down to 'notmuch new'

Pieter Praet pieter at praet.org
Sun Feb 19 12:47:55 PST 2012


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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 0174e93..ade7000 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -534,7 +534,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 ()
-- 
1.7.8.1



More information about the notmuch mailing list