[PATCH lkp-tests] job.rb: disable submit warn

[why] it has a warn when submit job: WARN -- skip non-executable */lkp-tests/monitors/plain/wait [how] lkp-tests/monitors/plain/wait is link to bin/event/wakeup but bin/event/wakeup does not exist. so we will do not check link file. 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 8d1f7469..78604d64 100755 --- a/lib/job.rb +++ b/lib/job.rb @@ -115,6 +115,8 @@ def __create_programs_hash(glob, lkp_src) next if path =~ /\.[0-9]+$/ unless File.executable?(path) + next if File.symlink?(path) + log_warn "skip non-executable #{path}" unless path =~ /\.cr$/ next end -- 2.23.0

On Mon, Nov 30, 2020 at 09:30:03AM +0800, Wei Jihui wrote:
[why] it has a warn when submit job: WARN -- skip non-executable */lkp-tests/monitors/plain/wait
[how] lkp-tests/monitors/plain/wait is link to bin/event/wakeup but bin/event/wakeup does not exist. so we will do not check link file.
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 8d1f7469..78604d64 100755 --- a/lib/job.rb +++ b/lib/job.rb @@ -115,6 +115,8 @@ def __create_programs_hash(glob, lkp_src) next if path =~ /\.[0-9]+$/
unless File.executable?(path) + next if File.symlink?(path)
感觉没有抓住本质特征。 Thanks, Fengguang
log_warn "skip non-executable #{path}" unless path =~ /\.cr$/ next end -- 2.23.0
participants (2)
-
Wei Jihui
-
Wu Fengguang