mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Use temp path
This commit is contained in:
parent
5b98b3f93d
commit
2cc0b9723e
@ -146,7 +146,7 @@ def get_images_with_versions(images_path):
|
||||
def download_builds(result_path, build_urls):
|
||||
for url in build_urls:
|
||||
if url.endswith('.deb'):
|
||||
fname = os.path.basename(url)
|
||||
fname = os.path.basename(url.replace('%2B', '+').replace('%20', ' '))
|
||||
logging.info("Will download %s to %s", fname, result_path)
|
||||
dowload_build_with_progress(url, os.path.join(result_path, fname))
|
||||
|
||||
|
@ -16,9 +16,9 @@ MAX_RETRY = 3
|
||||
NUM_WORKERS = 5
|
||||
SLEEP_BETWEEN_RETRIES = 5
|
||||
PARALLEL_GROUP_SIZE = 100
|
||||
CLICKHOUSE_BINARY_PATH = "/usr/bin/clickhouse"
|
||||
CLICKHOUSE_ODBC_BRIDGE_BINARY_PATH = "/usr/bin/clickhouse-odbc-bridge"
|
||||
CLICKHOUSE_LIBRARY_BRIDGE_BINARY_PATH = "/usr/bin/clickhouse-library-bridge"
|
||||
CLICKHOUSE_BINARY_PATH = "usr/bin/clickhouse"
|
||||
CLICKHOUSE_ODBC_BRIDGE_BINARY_PATH = "usr/bin/clickhouse-odbc-bridge"
|
||||
CLICKHOUSE_LIBRARY_BRIDGE_BINARY_PATH = "usr/bin/clickhouse-library-bridge"
|
||||
|
||||
TRIES_COUNT = 10
|
||||
MAX_TIME_SECONDS = 3600
|
||||
@ -231,7 +231,7 @@ class ClickhouseIntegrationTestsRunner:
|
||||
log_name = "install_" + f + ".log"
|
||||
log_path = os.path.join(str(self.path()), log_name)
|
||||
with open(log_path, 'w') as log:
|
||||
cmd = "dpkg -i {}".format(full_path)
|
||||
cmd = "dpkg -x {} .".format(full_path)
|
||||
logging.info("Executing installation cmd %s", cmd)
|
||||
retcode = subprocess.Popen(cmd, shell=True, stderr=log, stdout=log).wait()
|
||||
if retcode == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user