summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-06-13 10:08:08 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-06-13 10:23:19 +1000
commitbe3471293363b518eb07a1eb041fb3e548de1bef (patch)
tree6035df20071f8c4fdcf4948d8c80d351089afd35
parent15802a3871d15fcbd1a510b85715e633b11e078a (diff)
downloadxf86-input-wacom-be3471293363b518eb07a1eb041fb3e548de1bef.tar.gz
meson: default to pytest-3 first, then pytest
At least Ubuntu 20.04 has pytest point at the Python 2.x compatible version, resulting in syntax errors when trying to parse our Python 3 code files. So let's check pytest-3 first since that is the compatible version and fall back to normal pytest only where it's missing. Fixes #272 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e9d2173..45eb7e7 100644
--- a/meson.build
+++ b/meson.build
@@ -379,7 +379,7 @@ if build_unittests
modules: ['libevdev', 'pytest', 'yaml', 'attr', 'gi']
)
- pytest = find_program('pytest', 'pytest-3')
+ pytest = find_program('pytest-3', 'pytest')
test('pytest',
pytest,
args: ['--verbose', '--log-level=DEBUG'],