]> git.notmuchmail.org Git - notmuch/blobdiff - test/T580-thread-search.sh
lib/database: delete stemmer on destroy
[notmuch] / test / T580-thread-search.sh
index 6f7106db475a60cb472f073cd7b391ef56b44434..01aa3efd2e7949bb170ca817af1d42fa39683ff9 100755 (executable)
@@ -5,7 +5,7 @@
 
 test_description='test of searching by thread-id'
 
-. ./test-lib.sh || exit 1
+. $(dirname "$0")/test-lib.sh || exit 1
 
 add_email_corpus
 
@@ -15,7 +15,7 @@ count=0
 success=0
 for id in $(notmuch search --output=messages '*'); do
     count=$((count +1))
-    matches=$(notmuch search --output=threads "$id" | wc -l)
+    matches=$((`notmuch search --output=threads "$id" | wc -l`))
     if [ "$matches" = 1 ]; then
        success=$((success + 1))
     fi