]> git.notmuchmail.org Git - notmuch/commitdiff
test: quiet some extra debugging output
authorDavid Bremner <david@tethera.net>
Sun, 16 May 2021 14:10:15 +0000 (11:10 -0300)
committerDavid Bremner <david@tethera.net>
Sun, 23 May 2021 11:04:07 +0000 (08:04 -0300)
This output does not cause test failures, but may make it harder to
interpret the output.

test/T140-excludes.sh
test/T380-atomicity.sh
test/T700-reindex.sh
test/T750-user-header.sh

index 352b3eb8c14314cbbd17391c9c795f8b66b2cf02..e9cc9cb078d73352539973937ac44eee65b34ac6 100755 (executable)
@@ -21,7 +21,7 @@ generate_thread () {
     done
     notmuch new > /dev/null
     # We cannot retrieve the thread_id until after we have run notmuch new.
-    gen_thread_id=`notmuch search --output=threads id:${gen_thread_msg_id[0]}`
+    gen_thread_id=$(notmuch search --output=threads id:${gen_thread_msg_id[0]} 2>/dev/null)
 }
 
 #############################################
index 45de22284cb83af03294390bb4d2c52aab20810f..afe49d93d5f005fc57a76cb076814783e895ec6f 100755 (executable)
@@ -67,7 +67,7 @@ if test_require_external_prereq gdb; then
     ${TEST_GDB} -tty /dev/null -batch -x $NOTMUCH_SRCDIR/test/atomicity.py notmuch 1>gdb.out 2>&1
 
     # Get the final, golden output
-    notmuch search '*' > expected
+    notmuch search '*' 2>/dev/null > expected
 
     # Check output against golden output
     outcount=$(cat outcount)
index f51130e8f86d4ed8c4a80698b971305c34b4ae91..52bba4d318df1fc4816f262d40ffba0ead779a96 100755 (executable)
@@ -6,8 +6,8 @@ add_email_corpus
 
 notmuch tag +usertag1 '*'
 
-notmuch search '*' | notmuch_search_sanitize > initial-threads
-notmuch search --output=messages '*' > initial-message-ids
+notmuch search '*' 2>1 | notmuch_search_sanitize > initial-threads
+notmuch search --output=messages '*' 2>/dev/null > initial-message-ids
 notmuch dump > initial-dump
 
 test_begin_subtest 'reindex preserves threads'
index 05f80885eec5d23360f282187bc62a33acd51f07..03c436561601800983f4a0b059d42181b7d1cce5 100755 (executable)
@@ -4,8 +4,8 @@ test_description='indexing user specified headers'
 
 add_email_corpus
 
-notmuch search '*' | notmuch_search_sanitize > initial-threads
-notmuch search --output=messages '*' > initial-message-ids
+notmuch search '*' 2>1 | notmuch_search_sanitize > initial-threads
+notmuch search --output=messages '*' 2>/dev/null > initial-message-ids
 notmuch dump > initial-dump
 
 test_begin_subtest "adding illegal prefix name, bad utf8"