From 4019d9c15fceb8e9aae7eea87ac63e1463d8366d Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 19 Jul 2021 16:55:08 +0200 Subject: tests: Fail with exit code 77 for more missing dependencies Exit code 77 means that the test has been skipped and will be interpreted as such by meson. --- tests/gsdtestcase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py index 6c7168f9..3bf939fb 100644 --- a/tests/gsdtestcase.py +++ b/tests/gsdtestcase.py @@ -22,7 +22,7 @@ try: import dbusmock except ImportError: sys.stderr.write('You need python-dbusmock (http://pypi.python.org/pypi/python-dbusmock) for this test suite.\n') - sys.exit(1) + sys.exit(77) from x11session import X11SessionTestCase @@ -30,11 +30,11 @@ try: from gi.repository import Gio except ImportError: sys.stderr.write('You need pygobject and the Gio GIR for this test suite.\n') - sys.exit(0) + sys.exit(77) if subprocess.call(['which', 'gnome-session'], stdout=subprocess.PIPE) != 0: sys.stderr.write('You need gnome-session for this test suite.\n') - sys.exit(0) + sys.exit(77) top_builddir = os.environ.get('TOP_BUILDDIR', -- cgit v1.2.1