In all of the current tested configurations, this causes a failure.
There are other configurations where it does not, so we cannot just
test early to see if HOME is set. The error message varies depending
on the config scenario.
---
test/T055-path-config.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 3bf29c25..6d6e5cdd 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -163,6 +163,14 @@ for config in traditional split XDG XDG+profile XDG+cli-profile symlink home_mai
;;
esac
+ test_begin_subtest "error message for unset HOME ($config)"
+ env -u HOME notmuch count '*' >OUTPUT.raw 2>&1
+ sed 's/Error:.*$/ERROR/' < OUTPUT.raw > OUTPUT
+ cat <<EOF >EXPECTED
+ERROR
+EOF
+ test_expect_equal_file EXPECTED OUTPUT
+
test_begin_subtest "count ($config)"
output=$(notmuch count '*')
test_expect_equal "$output" '52'
--
2.53.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org