mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
tests/dbus-runner: Just forward test case exit status
This allows tests to skip (return 77) and properly report that to meson. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
c61dc682a2
commit
02eac693df
@ -168,7 +168,7 @@ ret = (unix_fd, False)
|
|||||||
args = wrapper.split(' ') + args
|
args = wrapper.split(' ') + args
|
||||||
|
|
||||||
p = subprocess.Popen(args, env=env)
|
p = subprocess.Popen(args, env=env)
|
||||||
self.assertEqual(p.wait(), 0)
|
return p.wait()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@ -179,8 +179,10 @@ if __name__ == '__main__':
|
|||||||
MutterDBusTestCase.setUpClass(args.kvm)
|
MutterDBusTestCase.setUpClass(args.kvm)
|
||||||
test_case = MutterDBusTestCase()
|
test_case = MutterDBusTestCase()
|
||||||
test_case.assertGreater(len(rest), 1)
|
test_case.assertGreater(len(rest), 1)
|
||||||
|
result = 1
|
||||||
try:
|
try:
|
||||||
print('Running test case...', file=sys.stderr)
|
print('Running test case...', file=sys.stderr)
|
||||||
test_case.wrap_call(rest[1:])
|
result = test_case.wrap_call(rest[1:])
|
||||||
finally:
|
finally:
|
||||||
MutterDBusTestCase.tearDownClass()
|
MutterDBusTestCase.tearDownClass()
|
||||||
|
sys.exit(result)
|
||||||
|
Loading…
Reference in New Issue
Block a user