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

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

Date:Sun, 19 Feb 2012 21:47:55 +0100

To:David Bremner ,Tomi Ollila

Cc:Notmuch Mail

From:Pieter Praet


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


Thread: