From 096cc15662076dead2ba7506a7593abc40147069 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 11 Sep 2024 09:49:31 +0200 Subject: [PATCH] jobs.py: don't ignore --host-version when --hosts is passed When using --hosts=cache://... it is much too early for such a check, so we have to give the info manually, and the script would not allow this. --- jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs.py b/jobs.py index cc4cb7b6..0a6a58e9 100755 --- a/jobs.py +++ b/jobs.py @@ -559,7 +559,7 @@ def build_pytest_cmd(job_data, hosts=None, host_version=None, pytest_args=[]): job_params = dict(job_data["params"]) # Set/overwrite host_version with real host version if hosts are specified - if hosts is not None: + if hosts is not None and host_version is None: try: host = hosts.split(',')[0] cmd = ["lsb_release", "-sr"]