mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Merge pull request #62044 from ClickHouse/ci_fix_for_kill_timeout_env
CI: fix for timeout env variable
This commit is contained in:
commit
b5b347e86f
@ -1761,9 +1761,10 @@ def _run_test(job_name: str, run_command: str) -> int:
|
|||||||
run_command or CI_CONFIG.get_job_config(job_name).run_command
|
run_command or CI_CONFIG.get_job_config(job_name).run_command
|
||||||
), "Run command must be provided as input argument or be configured in job config"
|
), "Run command must be provided as input argument or be configured in job config"
|
||||||
|
|
||||||
if not run_command:
|
|
||||||
if CI_CONFIG.get_job_config(job_name).timeout:
|
if CI_CONFIG.get_job_config(job_name).timeout:
|
||||||
os.environ["KILL_TIMEOUT"] = str(CI_CONFIG.get_job_config(job_name).timeout)
|
os.environ["KILL_TIMEOUT"] = str(CI_CONFIG.get_job_config(job_name).timeout)
|
||||||
|
|
||||||
|
if not run_command:
|
||||||
run_command = "/".join(
|
run_command = "/".join(
|
||||||
(os.path.dirname(__file__), CI_CONFIG.get_job_config(job_name).run_command)
|
(os.path.dirname(__file__), CI_CONFIG.get_job_config(job_name).run_command)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user