mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 12:01:58 +00:00
Clean all containers properly
This commit is contained in:
parent
12ebfc9a7e
commit
387ce81895
@ -191,6 +191,9 @@ def test_install(image: DockerImage, tests: Dict[str, str]) -> TestResults:
|
|||||||
retcode = process.wait()
|
retcode = process.wait()
|
||||||
if retcode == 0:
|
if retcode == 0:
|
||||||
status = OK
|
status = OK
|
||||||
|
subprocess.check_call(
|
||||||
|
f"docker kill -s 9 {container_id}", shell=True
|
||||||
|
)
|
||||||
break
|
break
|
||||||
|
|
||||||
status = FAIL
|
status = FAIL
|
||||||
@ -198,8 +201,8 @@ def test_install(image: DockerImage, tests: Dict[str, str]) -> TestResults:
|
|||||||
archive_path = TEMP_PATH / f"{container_name}-{retry}.tar.gz"
|
archive_path = TEMP_PATH / f"{container_name}-{retry}.tar.gz"
|
||||||
compress_fast(LOGS_PATH, archive_path)
|
compress_fast(LOGS_PATH, archive_path)
|
||||||
logs.append(archive_path)
|
logs.append(archive_path)
|
||||||
|
subprocess.check_call(f"docker kill -s 9 {container_id}", shell=True)
|
||||||
|
|
||||||
subprocess.check_call(f"docker kill -s 9 {container_id}", shell=True)
|
|
||||||
test_results.append(TestResult(name, status, stopwatch.duration_seconds, logs))
|
test_results.append(TestResult(name, status, stopwatch.duration_seconds, logs))
|
||||||
|
|
||||||
return test_results
|
return test_results
|
||||||
|
Loading…
Reference in New Issue
Block a user