]> www.infradead.org Git - users/dwmw2/linux.git/commit
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 11:57:34 +0000 (13:57 +0200)
commit8860f81fe0e1df0db601620bbbadb1b8fbd99ead
tree4af17d4e640120cdd3904793bbc0a9f580c3a04e
parent308f141667f267b72ab2b19a47017145e4021fcb
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