aboutsummaryrefslogtreecommitdiff
path: root/test/T391-python-cffi.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2023-04-09 11:26:23 -0300
committerDavid Bremner <david@tethera.net>2023-07-21 06:58:16 -0300
commitdfa43a19218ed46f677034ab7bf8b8907a327935 (patch)
treeb930d74b25e0c0c42977784af638a806707aaf7d /test/T391-python-cffi.sh
parente9ff896f8491e8780fcf7322436fc0c0575fe8f9 (diff)
test: treat undefined feature variables as 0
When running the test suite without building first, it is desirable to have the tests consider these variables being undefined as equivalent to the feature not being present, and in particular for the tests not to generate errors.
Diffstat (limited to 'test/T391-python-cffi.sh')
-rwxr-xr-xtest/T391-python-cffi.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/T391-python-cffi.sh b/test/T391-python-cffi.sh
index 30872af0..0ef9e0d3 100755
--- a/test/T391-python-cffi.sh
+++ b/test/T391-python-cffi.sh
@@ -2,11 +2,10 @@
test_description="python bindings (pytest)"
. $(dirname "$0")/test-lib.sh || exit 1
-if [ $NOTMUCH_HAVE_PYTHON3_CFFI -eq 0 -o $NOTMUCH_HAVE_PYTHON3_PYTEST -eq 0 ]; then
+if [ "${NOTMUCH_HAVE_PYTHON3_CFFI-0}" = "0" -o "${NOTMUCH_HAVE_PYTHON3_PYTEST-0}" = "0" ]; then
test_done
fi
-
test_begin_subtest "python cffi tests (NOTMUCH_CONFIG set)"
pytest_dir=$NOTMUCH_BUILDDIR/bindings/python-cffi/build/stage
printf "[pytest]\nminversion = 3.0\naddopts = -ra\n" > $pytest_dir/pytest.ini