aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2023-04-09 11:26:25 -0300
committerDavid Bremner <david@tethera.net>2023-07-21 07:07:43 -0300
commit73f3081160fb80345f3953cbdeba340975375325 (patch)
treed49d1fe65235cfd7b7352a61ac1154b4b141b760 /test
parentf6fcdf12da455d82a9ed0a0a33eddac60253a6e8 (diff)
test: Guess a value for NOTMUCH_PYTHON
python3 will work for many people, and reduce the friction to running the tests without running configure first.
Diffstat (limited to 'test')
-rw-r--r--test/test-lib-common.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh
index 18fa29c0..4d14e0b3 100644
--- a/test/test-lib-common.sh
+++ b/test/test-lib-common.sh
@@ -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"