From: David Bremner Date: Sun, 9 Apr 2023 14:26:25 +0000 (-0300) Subject: test: Guess a value for NOTMUCH_PYTHON X-Git-Tag: 0.38_rc0~11 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=73f3081160fb80345f3953cbdeba340975375325;hp=f6fcdf12da455d82a9ed0a0a33eddac60253a6e8 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. --- 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"