aboutsummaryrefslogtreecommitdiff
path: root/test/T055-path-config.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-10-30 13:22:34 -0300
committerDavid Bremner <david@tethera.net>2021-12-04 08:36:41 -0400
commitcaafab01a4409fd2a1a5d31b3d05815bf587d8e0 (patch)
treea556b8d2c3d9c85a67609afea971b3cb67d1ad76 /test/T055-path-config.sh
parent5f077bef37462267258f95f7400596a157878b14 (diff)
test: add known broken tests for python bindings in split configs
This reproduces the bug(s) reported in id:87h7d4wp6b.fsf@tethera.net
Diffstat (limited to 'test/T055-path-config.sh')
-rwxr-xr-xtest/T055-path-config.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index ef22e964..d6494b92 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -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