ktest: Fix bug when ADD_CONFIG is set but MIN_CONFIG is not
authorSteven Rostedt <srostedt@redhat.com>
Sat, 16 Jul 2011 02:05:59 +0000 (22:05 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 16 Jul 2011 02:05:59 +0000 (22:05 -0400)
commit250bae8be0177fcc1435cb46d1aba7e40a0366b2
tree74f4ee5db2d46d8e3d5fd66fbb8d8e94e44b53a7
parent43d1b6518e523df1bd15f07be480d10a9eb043bc
ktest: Fix bug when ADD_CONFIG is set but MIN_CONFIG is not

The MIN_CONFIG is a single config that is considered to have all the
configs that are required to boot the box.

ADD_CONFIG is a list of configs that we add that may contain configs
known to be broken (set off) or just configs that we want every box to
have and this can include shared configs.

If a config has no MIN_CONFIG defined, but has multiple files defined
for the ADD_CONFIG, the test will die, because the MIN_CONFIG will
default to ADD_CONFIG. The problem is the code to open MIN_CONFIG
expects a string of one file, not multiple, and the open will fail.

Since the real minconfig that is used is a concatination of MIN_CONFIG
and ADD_CONFIG files, we change the code to open that instead of
whatever MIN_CONFIG defaults to.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl