From 52abccf6b3a6053cdd20da460bb7796733c1237a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 2 Feb 2024 18:49:45 +0100 Subject: [PATCH] tests: Use skipTest to skip tests on missing components --- tests/integration-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration-test.py b/tests/integration-test.py index d97058a..67aa8c3 100644 --- a/tests/integration-test.py +++ b/tests/integration-test.py @@ -255,7 +255,8 @@ class Tests(dbusmock.DBusTestCase): s = '+' if os.geteuid() == 0: if not GLib.find_program_in_path('chattr'): - os._exit(77) + self.skipTest('chattr is not found') + subprocess.check_output(['chattr', '%si' % s, f]) if not enable: os.chmod(f, 0o666)