Skip to content

Commit

Permalink
jobs.py: don't ignore --host-version when --hosts is passed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ydirson committed Sep 13, 2024
1 parent d1f3d14 commit 096cc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 096cc15

Please sign in to comment.