[PATCH lkp-tests] lib/job.rb: load host config with atomic job

according to commit c725e0f022b707ba385f8f3657e79, job = deepcopy(@job) without load_hosts_config it will keep to @job for "@job = deepcopy(job)" under "@jobs.each do|hash|" so this @job is without load_hosts_config. Signed-off-by: Wei Jihui <weijihuiall@163.com> --- lib/job.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/job.rb b/lib/job.rb index 14946f47..6359254e 100755 --- a/lib/job.rb +++ b/lib/job.rb @@ -696,9 +696,11 @@ class Job each_job_init each_job(&block) @jobs.each do |hash| + @load_hosts_done = false @job = deepcopy(job) @job2 = hash load_defaults + load_hosts_config each_job_init each_job(&block) end -- 2.23.0

TO ALL. On Thu, Oct 15, 2020 at 07:45:20PM +0800, Wei Jihui wrote:
according to commit c725e0f022b707ba385f8f3657e79,
The preferred way of referencing a commit is like 436b2ac603d5 ("modpost: invoke modpost only when input files are updated") That is, 12-byte commit ("title") Thanks, Fengguang
participants (2)
-
Wei Jihui
-
Wu Fengguang