mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-05 20:28:20 +02:00
tests/integration-tests: Handle skipped tests from python side
This commit is contained in:
parent
b88875c550
commit
be5b4232a4
1 changed files with 7 additions and 1 deletions
|
|
@ -1527,4 +1527,10 @@ if __name__ == '__main__':
|
|||
if 'umockdev' not in os.environ.get('LD_PRELOAD', ''):
|
||||
os.execvp('umockdev-wrapper', ['umockdev-wrapper', sys.executable] + sys.argv)
|
||||
|
||||
unittest.main()
|
||||
prog = unittest.main(exit=False)
|
||||
if prog.result.errors or prog.result.failures:
|
||||
sys.exit(1)
|
||||
|
||||
# Translate to skip error
|
||||
if prog.result.testsRun == len(prog.result.skipped):
|
||||
sys.exit(77)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue