mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-14 11:48:10 +02:00
tests: Use skipTest to skip tests on missing components
This commit is contained in:
parent
be5b4232a4
commit
52abccf6b3
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue