lkml.org 
[lkml]   [2011]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/10] ktest: make start_monitor_and_boot true to its name
    Date
    Pull out the install parts of the monitor/boot function

    Signed-off-by: Andrew Jones <drjones@redhat.com>
    ---
    tools/testing/ktest/ktest.pl | 6 +++++-
    1 files changed, 5 insertions(+), 1 deletions(-)

    diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
    index a42f8bf..4265652 100755
    --- a/tools/testing/ktest/ktest.pl
    +++ b/tools/testing/ktest/ktest.pl
    @@ -1164,11 +1164,13 @@ sub get_version {
    doprint "$version\n";
    }

    -sub start_monitor_and_boot {
    +sub grub_install {
    get_grub_index;
    get_version;
    install;
    +}

    +sub start_monitor_and_boot {
    start_monitor;
    return monitor;
    }
    @@ -1494,6 +1496,7 @@ sub do_test {
    my ($type) = @_;
    my $failed = 0;

    + grub_install;
    start_monitor_and_boot or $failed = 1;

    if ($failed && $in_bisect && $type ne "boot") {
    @@ -2615,6 +2618,7 @@ sub make_min_config {

    my $failed = 0;
    build "oldconfig";
    + grub_install;
    start_monitor_and_boot or $failed = 1;
    end_monitor;

    --
    1.7.4.1


    \
     
     \ /
      Last update: 2011-08-12 15:35    [W:4.478 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site