X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT390-python.sh;h=4726bc366ecebda8fc48e694ad802403ea4c6807;hp=3f03a2e3a966018a273bdb75dece7fcc1b224ddd;hb=13a59c4a8fc4ee418424e0b7ee4c8bbd5aae5da2;hpb=957fc2e1a7d00636c7eaaf487edae65e7a63dc8f diff --git a/test/T390-python.sh b/test/T390-python.sh index 3f03a2e3..4726bc36 100755 --- a/test/T390-python.sh +++ b/test/T390-python.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash test_description="python bindings" -. ./test-lib.sh +. ./test-lib.sh || exit 1 + +test_require_external_prereq ${NOTMUCH_PYTHON} add_email_corpus @@ -11,7 +13,7 @@ db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) q_new = notmuch.Query(db, 'tag:inbox') q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST) for t in q_new.search_threads(): - print t.get_thread_id() + print (t.get_thread_id()) EOF notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED test_expect_equal_file OUTPUT EXPECTED @@ -23,7 +25,7 @@ db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) q_new = notmuch.Query(db, 'tag:inbox') q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST) for m in q_new.search_messages(): - print m.get_message_id() + print (m.get_message_id()) EOF notmuch search --sort=oldest-first --output=messages tag:inbox | sed s/^id:// > EXPECTED test_expect_equal_file OUTPUT EXPECTED @@ -32,7 +34,7 @@ test_begin_subtest "get non-existent file" test_python <