]> git.karo-electronics.de Git - mv-sheeva.git/commit
ktest: Add helper function to avoid duplicate code
authorSteven Rostedt <srostedt@redhat.com>
Wed, 15 Jun 2011 00:49:13 +0000 (20:49 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 15 Jun 2011 00:49:13 +0000 (20:49 -0400)
commitddf607e5f853ae172e81e6051e1e12e24ea8a3c6
tree15936c96b598c0c4ed5d8411489adcb7bfc95aa0
parent1990207d538885e678f374e3e79f454c2e6c7383
ktest: Add helper function to avoid duplicate code

Several places had the following code:

    get_grub_index;
    get_version;
    install;

    start_monitor;
    return monitor;

Creating a function "start_monitor_and_boot()" replaces these mulitple
uses with a single call.

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