]> git.notmuchmail.org Git - notmuch/commitdiff
test: add known broken tests for python bindings in split configs
authorDavid Bremner <david@tethera.net>
Sat, 30 Oct 2021 16:22:34 +0000 (13:22 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 4 Dec 2021 12:36:41 +0000 (08:36 -0400)
This reproduces the bug(s) reported in id:87h7d4wp6b.fsf@tethera.net

test/T055-path-config.sh

index ef22e96410d1df96387e4549f7559d8badb3cc6f..d6494b92afa36f061515353cd82abcd1cb0990c4 100755 (executable)
@@ -306,7 +306,24 @@ EOF
           output2=$(notmuch --config='' config get ${key})
           notmuch config set ${key}
           test_expect_equal "${output}+${output2}" "${value}+"
-          ;;
+          ;&
+       split)
+          test_begin_subtest "'to' header does not crash (python-cffi) ($config)"
+          test_subtest_known_broken
+          echo 'notmuch@notmuchmail.org' > EXPECTED
+          test_python <<EOF
+import notmuch2
+db=notmuch2.Database()
+m=db.find('20091117232137.GA7669@griffis1.net')
+to=m.header('To')
+print(to)
+EOF
+          test_expect_equal_file EXPECTED OUTPUT
+          ;& # fall through
+   esac
+
+   case $config in
+       split|XDG*)
    esac
    restore_config
    rm -rf home/.local