From 73f3081160fb80345f3953cbdeba340975375325 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 9 Apr 2023 11:26:25 -0300 Subject: [PATCH] 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. --- test/test-lib-common.sh | 4 ++++ 1 file changed, 4 insertions(+) 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"