Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343602
b: refs/heads/master
c: e1a6c3d
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Dec 12, 2012
1 parent e70bd95 commit 8ea3a67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 189251705649bdfdf5e5850eb178f8cbfdac5480
refs/heads/master: e1a6c3d748ef0ee093e764af3fdd0c1a5cd2b664
10 changes: 10 additions & 0 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,14 @@ sub do_post_install {
dodie "Failed to run post install";
}

# Sometimes the reboot fails, and will hang. We try to ssh to the box
# and if we fail, we force another reboot, that should powercycle it.
sub test_booted {
if (!run_ssh "echo testing connection") {
reboot $sleep_time;
}
}

sub install {

return if ($no_install);
Expand All @@ -1819,6 +1827,8 @@ sub install {

my $cp_target = eval_kernel_version $target_image;

test_booted;

run_scp_install "$outputdir/$build_target", "$cp_target" or
dodie "failed to copy image";

Expand Down

0 comments on commit 8ea3a67

Please sign in to comment.