diff options
author | Benjamin Berg <bberg@redhat.com> | 2021-07-19 16:55:08 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2021-07-22 14:22:03 +0200 |
commit | 4019d9c15fceb8e9aae7eea87ac63e1463d8366d (patch) | |
tree | b066bc35f44b80d9facad523380ad2a9dda5b2e8 /tests | |
parent | 28e28e9e598342c897ae5ca350d0da6f4aea057b (diff) | |
download | gnome-settings-daemon-4019d9c15fceb8e9aae7eea87ac63e1463d8366d.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gsdtestcase.py | 6 |
1 files changed, 3 insertions, 3 deletions
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', |