]> git.cworth.org Git - notmuch/blobdiff - test/T570-revision-tracking.sh
test: treat undefined feature variables as 0
[notmuch] / test / T570-revision-tracking.sh
index a748005056d77c06ff511f8de2bf3d7333081364..bcc97dd9396305c7b984d156e575bdde87198804 100755 (executable)
@@ -95,7 +95,7 @@ subtotal=$(notmuch count lastmod:..$lastmod)
 result=$(($subtotal == $total-1))
 test_expect_equal 1 "$result"
 
-if [ $NOTMUCH_HAVE_SFSEXP -eq 1 ]; then
+if [ "${NOTMUCH_HAVE_SFSEXP-0}" = "1" ]; then
     test_begin_subtest 'exclude one message using negative lastmod (sexp)'
     total=$(notmuch count '*')
     notmuch tag +${RANDOM} id:4EFC743A.3060609@april.org