Use sudo to compress logs with the highest permissions

This commit is contained in:
Mikhail f. Shiryaev 2024-04-11 15:16:21 +02:00
parent dda18f75bb
commit c684770ace
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -398,7 +398,7 @@ class ClickhouseIntegrationTestsRunner:
@staticmethod
def _compress_logs(directory, relpaths, result_path):
retcode = subprocess.call( # STYLE_CHECK_ALLOW_SUBPROCESS_CHECK_CALL
f"tar --use-compress-program='zstd --threads=0' -cf {result_path} -C "
f"sudo tar --use-compress-program='zstd --threads=0' -cf {result_path} -C "
f"{directory} {' '.join(relpaths)}",
shell=True,
)