mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
revng.daemon test: fail if daemon exit code != 0
This commit is contained in:
committed by
Alessandro Di Federico
parent
d7265ff160
commit
5d02e7258f
@@ -87,11 +87,14 @@ def client(pytestconfig: Config, request) -> Generator[Client, None, None]:
|
||||
yield gql_client
|
||||
|
||||
process.terminate()
|
||||
process.wait()
|
||||
return_code = process.wait()
|
||||
|
||||
if request.node.rep_call.failed:
|
||||
if request.node.rep_call.failed or return_code != 0:
|
||||
print_fd(out_fd)
|
||||
|
||||
# Assert that the daemon exited cleanly
|
||||
assert return_code == 0, f"Daemon exited with non-zero return code: {return_code}"
|
||||
|
||||
|
||||
def test_info(client):
|
||||
q = gql(
|
||||
|
||||
Reference in New Issue
Block a user