2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00
linux-next/tools/testing/ktest
Steven Rostedt 8bc5e4ea3e ktest: Fix ktest confusion with CONFIG_MODULES_USE_ELF_RELA
In order to decide if ktest should bother installing modules on the
target box, it checks if the config file has CONFIG_MODULES=y. But it
also checks if the '=y' part exists. It only will install modules if the
config exists and is set with '=y'. But as the regex that was used
tests:

  /^CONFIG_MODULES(=y)?/

this will also match:

  CONFIG_MODULES_USE_ELF_RELA

as the '=y' part was optional and it did not test the rest of the line.
When this happens, ktest will stop checking the rest of the configs but
it will also think that no modules are needed to be installed. What it
should do is only jump out of the loop if it actually found a
CONFIG_MODULES that is set to true.

Otherwise, ktest wont install the necessary modules needed for proper
booting of the test target.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2012-10-26 00:10:32 -04:00
..
examples tools/testing: fix comment / output typos 2012-09-01 08:48:19 -07:00
compare-ktest-sample.pl ktest: Fix compare script to test if options are not documented 2011-12-22 22:06:59 -05:00
ktest.pl ktest: Fix ktest confusion with CONFIG_MODULES_USE_ELF_RELA 2012-10-26 00:10:32 -04:00
sample.conf ktest: Add MAX_MONITOR_WAIT option 2012-07-19 16:05:42 -04:00