Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285893
b: refs/heads/master
c: 2b29b2f
h: refs/heads/master
i:
  285891: 5446ad2
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Dec 23, 2011
1 parent 5992170 commit 0e21146
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 165708b273f87ac52a4564b114a6c046e6b3a02d
refs/heads/master: 2b29b2f8f869847d437b525d4cf027c09dc38286
15 changes: 12 additions & 3 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1434,12 +1434,19 @@ sub monitor {
return 1;
}

sub eval_kernel_version {
my ($option) = @_;

$option =~ s/\$KERNEL_VERSION/$version/g;

return $option;
}

sub do_post_install {

return if (!defined($post_install));

my $cp_post_install = $post_install;
$cp_post_install =~ s/\$KERNEL_VERSION/$version/g;
my $cp_post_install = eval_kernel_version $post_install;
run_command "$cp_post_install" or
dodie "Failed to run post install";
}
Expand All @@ -1448,7 +1455,9 @@ sub install {

return if ($no_install);

run_scp "$outputdir/$build_target", "$target_image" or
my $cp_target = eval_kernel_version $target_image;

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

my $install_mods = 0;
Expand Down

0 comments on commit 0e21146

Please sign in to comment.