mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test: replaced use of python with $NOTMUCH_PYTHON (twice)
$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."
This commit is contained in:
parent
9916dea473
commit
2c5eed16b3
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ test_description="threading when messages received out of order"
|
||||||
|
|
||||||
# Generate all single-root four message thread structures. We'll use
|
# Generate all single-root four message thread structures. We'll use
|
||||||
# this for multiple tests below.
|
# 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")
|
nthreads=$(wc -l <<< "$THREADS")
|
||||||
|
|
||||||
test_begin_subtest "Messages with one parent get linked in all delivery orders"
|
test_begin_subtest "Messages with one parent get linked in all delivery orders"
|
||||||
|
|
|
@ -667,7 +667,7 @@ test_expect_equal_json () {
|
||||||
|
|
||||||
# Sort the top-level list of JSON data from stdin.
|
# Sort the top-level list of JSON data from stdin.
|
||||||
test_sort_json () {
|
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)"
|
"import sys, json; json.dump(sorted(json.load(sys.stdin)),sys.stdout)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue