aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-08-03 22:40:55 +0700
committerDavid Bremner <david@tethera.net>2020-08-08 15:58:59 -0300
commite4c4cc1b34cfaa6d7b96053644fa821878a67c56 (patch)
treefde2b778eff7948aba9fe2e1a2844203eebe3f37 /configure
parent0e4695abaa7bda20d92813571ad53fb141f3e38c (diff)
configure: check for pytest with python -m pytest
On different distro, pytest is suffixed with different patterns. On the other hand, `python3-pytest' could be invoked correctly, via `python3 -m pytest', the latter is used by our tests, now. Switch to `$python -m pytest` to fix address all incompatible naming. Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 98f5f1ea..0921c0cc 100755
--- a/configure
+++ b/configure
@@ -812,7 +812,7 @@ if [ $have_python3 -eq 1 ]; then
printf "Checking for python3 pytest (>= 3.0)... "
conf=$(mktemp)
printf "[pytest]\nminversion=3.0\n" > $conf
- if pytest-3 -c $conf --version >/dev/null 2>&1; then
+ if "$python" -m pytest -c $conf --version >/dev/null 2>&1; then
printf "Yes.\n"
have_python3_pytest=1
else