[pitivi] tests_: Use nosetest3 binary if available instead of Python 2.x nosetest
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests_: Use nosetest3 binary if available instead of Python 2.x nosetest
- Date: Tue, 9 Aug 2016 13:32:28 +0000 (UTC)
commit 4f4264f3c80ef09395d9af00013d364929434e3e
Author: Sebastian Dröge <sebastian centricular com>
Date: Tue Aug 9 08:46:01 2016 +0000
tests_: Use nosetest3 binary if available instead of Python 2.x nosetest
Some distros install the Python 3 version as nosetests3, some as nosetests.
https://phabricator.freedesktop.org/T7538
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1263
tests/meson.build | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index c3a2484..02d92ae 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,4 +1,8 @@
-runtests = find_program('nosetests')
+runtests = find_program('nosetests3', required : false)
+# On some distros it doesn't have the '3' suffix
+if not runtests.found()
+ runtests = find_program('nosetests')
+endif
testdir = '@0@'.format(meson.current_source_dir())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]