]> git.notmuchmail.org Git - notmuch/commitdiff
test: Guess a value for NOTMUCH_PYTHON
authorDavid Bremner <david@tethera.net>
Sun, 9 Apr 2023 14:26:25 +0000 (11:26 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 21 Jul 2023 10:07:43 +0000 (07:07 -0300)
python3 will work for many people, and reduce the friction to running
the tests without running configure first.

test/test-lib-common.sh

index 18fa29c0dd86d3b7eb8ab5c3b69bd7f9a35cf89a..4d14e0b3b18e506b445e7e9c38b45a545382ded0 100644 (file)
@@ -323,6 +323,10 @@ rm -rf "$TMP_DIRECTORY" || {
        exit 1
 }
 
+# Provide a guess at a usable Python, to support running tests without
+# running configure first.
+NOTMUCH_PYTHON=${NOTMUCH_PYTHON-python3}
+
 # A temporary home directory is needed by at least:
 # - emacs/"Sending a message via (fake) SMTP"
 # - emacs/"Reply within emacs"