]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ktest: Allow tests to use different GRUB_MENUs
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 8 Mar 2013 14:33:35 +0000 (09:33 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 8 Mar 2013 14:33:35 +0000 (09:33 -0500)
commit752d96657cf4844793ac4d62d02a0733396ef16c
tree1365b5ca270473ae8baa48253982b6a67b3057f7
parent6dbe51c251a327e012439c4772097a13df43c5b8
ktest: Allow tests to use different GRUB_MENUs

To save connecting and searching for a given grub menu for each test,
ktest.pl will cache the grub number it found. The problem is that
different tests might use a different grub menu, but ktest.pl will
ignore it.

Instead, have ktest.pl check if the grub menu it used to cache the
content is the same as when it grabbed the menu. If not, grab it again,
otherwise just return the cached value.

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