mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Wait for all files are in sync before archiving them
This commit is contained in:
parent
8ec4c77352
commit
550c776ffe
@ -353,6 +353,11 @@ class ClickhouseIntegrationTestsRunner:
|
||||
)
|
||||
|
||||
def _compress_logs(self, dir, relpaths, result_path):
|
||||
# We execute sync in advance to have all files written after containers
|
||||
# are finished or killed
|
||||
subprocess.check_call( # STYLE_CHECK_ALLOW_SUBPROCESS_CHECK_CALL
|
||||
"sync", shell=True
|
||||
)
|
||||
subprocess.check_call( # STYLE_CHECK_ALLOW_SUBPROCESS_CHECK_CALL
|
||||
"tar czf {} -C {} {}".format(result_path, dir, " ".join(relpaths)),
|
||||
shell=True,
|
||||
|
Loading…
Reference in New Issue
Block a user