it is eq to:
return (??) if !Dir.exists?(idle_job_path)
jobs = Dir[idle_job_path + "*.yaml"] jobs.each do |job| extra_job_fields = ["idle_job=true"] if Path[job].basename == "multi-qemu.yaml" extra_job_fields += ["FLUENTD_SERVER_HOST=#{ENV["FLUENTD_SERVER_HOST"]}", "FLUENTD_SERVER_PORT=#{ENV["FLUENTD_SERVER_PORT"]}"] end Jobfile::Operate.auto_submit_job(job, "testbox: #{tbox_group}", extra_job_fields) end
Got it.
Thanks, RenWen
end
private def add_kernel_console_param(arch_tmp) @@ -520,7 +530,7 @@ class Sched "#{JobHelper.service_path("#{SRV_INITRD}/osimage/#{job.os_dir}/vmlinuz")}" else response += "kernel #{os_http_prefix}" +
"#{JobHelper.service_path("#{SRV_OS}/#{job.os_dir}/vmlinuz")}"
end response += " user=lkp" response += " job=/lkp/scheduled/job.yaml RESULT_ROOT=/result/job rootovl ip=dhcp ro""#{JobHelper.service_path("#{SRV_OS}/#{job.os_dir}/vmlinuz")}"
-- 2.23.0
-- Thanks. chief tongqunfeng@huawei.com