unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: replaced use of python with $NOTMUCH_PYTHON (twice)
@ 2017-01-04 21:33 Tomi Ollila
  2017-02-23 12:58 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Tomi Ollila @ 2017-01-04 21:33 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

$NOTMUCH_PYTHON is sourced from sh.config, configured by
./configure and stated to be used as:

"Name of python command to use in configure and the test suite."
---
 test/T260-thread-order.sh | 2 +-
 test/test-lib.sh          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/T260-thread-order.sh b/test/T260-thread-order.sh
index f720c99817a1..89f4d1be4816 100755
--- a/test/T260-thread-order.sh
+++ b/test/T260-thread-order.sh
@@ -4,7 +4,7 @@ test_description="threading when messages received out of order"
 
 # Generate all single-root four message thread structures.  We'll use
 # this for multiple tests below.
-THREADS=$(python ${TEST_DIRECTORY}/gen-threads.py 4)
+THREADS=$($NOTMUCH_PYTHON ${TEST_DIRECTORY}/gen-threads.py 4)
 nthreads=$(wc -l <<< "$THREADS")
 
 test_begin_subtest "Messages with one parent get linked in all delivery orders"
diff --git a/test/test-lib.sh b/test/test-lib.sh
index f55d2c67aac1..6c7beae07352 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -657,7 +657,7 @@ test_expect_equal_json () {
 
 # Sort the top-level list of JSON data from stdin.
 test_sort_json () {
-    PYTHONIOENCODING=utf-8 python -c \
+    PYTHONIOENCODING=utf-8 $NOTMUCH_PYTHON -c \
         "import sys, json; json.dump(sorted(json.load(sys.stdin)),sys.stdout)"
 }
 
-- 
2.8.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test: replaced use of python with $NOTMUCH_PYTHON (twice)
  2017-01-04 21:33 [PATCH] test: replaced use of python with $NOTMUCH_PYTHON (twice) Tomi Ollila
@ 2017-02-23 12:58 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2017-02-23 12:58 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> writes:

> $NOTMUCH_PYTHON is sourced from sh.config, configured by
> ./configure and stated to be used as:

pushed to master

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-23 12:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 21:33 [PATCH] test: replaced use of python with $NOTMUCH_PYTHON (twice) Tomi Ollila
2017-02-23 12:58 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).