From 5b07d3c9c83d06e58b08e6374b9d30be1812f7a1 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 28d58946..31e00e92 100755 --- a/jobs.py +++ b/jobs.py @@ -566,7 +566,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"]