[PATCH lkp-tests] lib/job.rb: set flag true only when find hosts file

17 Oct
2020
17 Oct
'20
3:54 p.m.
it should set load_hosts_done is true only when find and load hosts file Signed-off-by: Wei Jihui <weijihuiall@163.com> --- lib/job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/job.rb b/lib/job.rb index 14946f47..a5fe450f 100755 --- a/lib/job.rb +++ b/lib/job.rb @@ -307,10 +307,10 @@ class Job hwconfig = load_yaml(hosts_file, nil) @job[source_file_symkey(hosts_file)] = nil @job.merge!(hwconfig) { |_k, a, _b| a } # job's key/value has priority over hwconfig + @load_hosts_done = true end @job['arch'] ||= 'aarch64' - @load_hosts_done = true end def check_set_tbox_group -- 2.23.0
1593
Age (days ago)
1593
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wei Jihui