mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Unit test: Mark as FAILURE if retcode != 0
This commit is contained in:
parent
86bab5a78a
commit
a296beb390
@ -197,6 +197,11 @@ def main():
|
||||
subprocess.check_call(f"sudo chown -R ubuntu:ubuntu {TEMP_PATH}", shell=True)
|
||||
|
||||
state, description, test_results = process_results(test_output)
|
||||
if retcode != 0 and state == SUCCESS:
|
||||
# The process might have failed without reporting it in the test_output (e.g. LeakSanitizer)
|
||||
state = FAILURE
|
||||
description = "Invalid return code. Check run.log"
|
||||
|
||||
additional_files = [run_log_path] + [
|
||||
p for p in test_output.iterdir() if not p.is_dir()
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user