
Please explain its usage scenario. Thanks, Fengguang On Wed, Jan 06, 2021 at 09:29:44PM +0800, Wei Jihui wrote:
do fault reproduction when submit a failed job
Signed-off-by: Wei Jihui <weijihuiall@163.com> --- lib/job.rb | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/lib/job.rb b/lib/job.rb index 8346db87..631ebfc9 100755 --- a/lib/job.rb +++ b/lib/job.rb @@ -255,6 +255,7 @@ class Job hash.delete('override') end hash.merge!(@overrides) + hash.merge!(fault_reproduction) if hash.has_key?("id") @jobs.concat(multi_args(hash)) # return [hash] or [h1,h2] end rescue StandardError => e @@ -285,6 +286,10 @@ class Job @jobfile = jobfile end
+ def fault_reproduction + wait = load_yaml("#{lkp_src}/jobs/fault_reproduction.yaml", {}) + end + def multi_args(hash) jobs_array = [] hash.each { |key, value| -- 2.23.0