[gnome-settings-daemon/benzea/ci-fixes: 1/19] tests: Fail with exit code 77 for more missing dependencies
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/benzea/ci-fixes: 1/19] tests: Fail with exit code 77 for more missing dependencies
- Date: Thu, 22 Jul 2021 12:27:12 +0000 (UTC)
commit 4019d9c15fceb8e9aae7eea87ac63e1463d8366d
Author: Benjamin Berg <bberg redhat com>
Date: Mon Jul 19 16:55:08 2021 +0200
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(-)
---
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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]