]> git.notmuchmail.org Git - notmuch/blobdiff - test/T240-dump-restore.sh
test: treat undefined feature variables as 0
[notmuch] / test / T240-dump-restore.sh
index a86f0fb7e8f0440de6268075e91ba3b4262a38b1..80939030eedf0797eb37e49952cdef005a483cca 100755 (executable)
@@ -118,7 +118,7 @@ notmuch dump -- from:cworth > dump-dash-cworth.actual
 test_expect_equal_file dump-cworth.expected dump-dash-cworth.actual
 
 
-if [ $NOTMUCH_HAVE_SFSEXP -eq 1 ]; then
+if [ "${NOTMUCH_HAVE_SFSEXP-0}" = "1" ]; then
 
     test_begin_subtest "dump --query=sexp -- '(from cworth)'"
     notmuch dump --query=sexp -- '(from cworth)' > dump-dash-cworth.actual2