]> git.notmuchmail.org Git - notmuch/blobdiff - test/T060-count.sh
test: treat undefined feature variables as 0
[notmuch] / test / T060-count.sh
index 4814670681165322d4769487991ef4f12542ea64..6e855b591af5594677c73d1d0a7271e0eda05ece 100755 (executable)
@@ -157,7 +157,7 @@ print("4: {} messages".format(query.count_messages()))
 EOF
 test_expect_equal_file EXPECTED OUTPUT
 
-if [ $NOTMUCH_HAVE_SFSEXP -eq 1 ]; then
+if [ "${NOTMUCH_HAVE_SFSEXP-0}" = "1" ]; then
 
     test_begin_subtest "and of exact terms (query=sexp)"
     output=$(notmuch count --query=sexp '(and "wonderful" "wizard")')