selftests/x86: Add validity check and allow field splitting
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Mon, 14 Feb 2022 18:41:08 +0000 (23:41 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:06 +0000 (14:23 +0200)
commitd9172393f0f60a57ccadc037b0a68a573d6518b0
tree4ff00514bd02eaff5d9eca00e3bcfcef875e852f
parente129fb0651066611227a78c1894f19fb289520f5
selftests/x86: Add validity check and allow field splitting

[ Upstream commit b06e15ebd5bfb670f93c7f11a29b8299c1178bc6 ]

Add check to test if CC has a string. CC can have multiple sub-strings
like "ccache gcc". Erorr pops up if it is treated as single string and
double quotes are used around it. This can be fixed by removing the
quotes and not treating CC as a single string.

Fixes: e9886ace222e ("selftests, x86: Rework x86 target architecture detection")
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20220214184109.3739179-2-usama.anjum@collabora.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/x86/check_cc.sh