[gnome-settings-daemon/benzea/ci-fixes: 1/7] tests: Fail with exit code 77 for more missing dependencies




commit 0ef03e99e5dc2716624f4033581a229e84ed52ac
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

 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]