aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Yiding <yidingx.liu@intel.com>2019-07-24 16:50:24 +0800
committerPhilip Li <philip.li@intel.com>2019-07-24 23:17:44 +0800
commit547322de162fcac894567c937d68f6e6d3c2e482 (patch)
tree9ae2f928a195fc58c277684e6da6ed8796b7296a
parent4eb1c08eb7d68d18da89c57381b61079b902deca (diff)
downloadlkp-tests-547322de162fcac894567c937d68f6e6d3c2e482.tar.gz
filters/need_kconfig.rb: clear kconfig_error_message
as of now, if a kernel doesn't open needed kconfig, will output ------ 2019-07-23 08:09:30 +0800 afcaa234edafee2f7cb706432ac6bc90c0818468 /lkp/jobs/scheduled/lkp-skl-d01/kernel_selftests-kselftests-03-debian-x86_64-2019-05-14.cgz-539bca535d-20190723-73252-12przht-0.yaml removed by param constraints: CONFIG_MPLS_ROUTING=m is not satisfied by v5.2-rc4, it is only satisfied by kernel matching v(4\.[1-9]|4\.1[0-9]|4\.20|5\.) regexp ------ error log is not clear, it looks like kernel doesn' support this kconfig. In fact kernel support this kconfig just not compile it. after this patch ------ 2019-07-24 16:45:46 +0800 f5e1848bf7f5f77d06b526983a2b5911b3e0755f /lkp/jobs/scheduled/vm-snb-8G-aa9aa08d95b6/kernel_selftests-kselftests-00-debian-x86_64-2018-04-03.cgz-5f9e832c1370-20190724-67215-krlscl-0.yaml removed by param constraints: CONFIG_LYD_DEBUG=m has not been compiled by v5.3-rc1, it is supported by kernel matching v(4\.[3-9]|4\.1[0-9]|4\.20|5\.) regexp ------ Signed-off-by: Liu Yiding <yidingx.liu@intel.com> Signed-off-by: Philip Li <philip.li@intel.com>
-rwxr-xr-xfilters/need_kconfig.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/need_kconfig.rb b/filters/need_kconfig.rb
index 943935fb..20ff2f44 100755
--- a/filters/need_kconfig.rb
+++ b/filters/need_kconfig.rb
@@ -50,9 +50,9 @@ def check_all(kconfig_lines)
next if check_kconfig(kconfig_lines, config)
# need_kconfig
- kconfig_error_message = "#{config} is not satisfied"
+ kconfig_error_message = "#{config} has not been compiled"
kconfig_error_message = "#{kconfig_error_message} by #{kernel_version}" if kernel_version
- kconfig_error_message = "#{kconfig_error_message}, it is only satisfied by kernel matching #{kernel_version_regexp} regexp" if kernel_version_regexp
+ kconfig_error_message = "#{kconfig_error_message}, it is supported by kernel matching #{kernel_version_regexp} regexp" if kernel_version_regexp
raise Job::ParamError, kconfig_error_message.to_s unless __FILE__ =~ /suggest_kconfig/
puts "suggest kconfig: #{config}"