diff options
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 31b941613f98..e91702eee580 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl | |||
@@ -106,6 +106,7 @@ my $grub_menu; | |||
106 | my $grub_number; | 106 | my $grub_number; |
107 | my $target; | 107 | my $target; |
108 | my $make; | 108 | my $make; |
109 | my $pre_install; | ||
109 | my $post_install; | 110 | my $post_install; |
110 | my $no_install; | 111 | my $no_install; |
111 | my $noclean; | 112 | my $noclean; |
@@ -225,6 +226,7 @@ my %option_map = ( | |||
225 | "ADD_CONFIG" => \$addconfig, | 226 | "ADD_CONFIG" => \$addconfig, |
226 | "REBOOT_TYPE" => \$reboot_type, | 227 | "REBOOT_TYPE" => \$reboot_type, |
227 | "GRUB_MENU" => \$grub_menu, | 228 | "GRUB_MENU" => \$grub_menu, |
229 | "PRE_INSTALL" => \$pre_install, | ||
228 | "POST_INSTALL" => \$post_install, | 230 | "POST_INSTALL" => \$post_install, |
229 | "NO_INSTALL" => \$no_install, | 231 | "NO_INSTALL" => \$no_install, |
230 | "REBOOT_SCRIPT" => \$reboot_script, | 232 | "REBOOT_SCRIPT" => \$reboot_script, |
@@ -1669,6 +1671,12 @@ sub install { | |||
1669 | 1671 | ||
1670 | return if ($no_install); | 1672 | return if ($no_install); |
1671 | 1673 | ||
1674 | if (defined($pre_install)) { | ||
1675 | my $cp_pre_install = eval_kernel_version $pre_install; | ||
1676 | run_command "$cp_pre_install" or | ||
1677 | dodie "Failed to run pre install"; | ||
1678 | } | ||
1679 | |||
1672 | my $cp_target = eval_kernel_version $target_image; | 1680 | my $cp_target = eval_kernel_version $target_image; |
1673 | 1681 | ||
1674 | run_scp_install "$outputdir/$build_target", "$cp_target" or | 1682 | run_scp_install "$outputdir/$build_target", "$cp_target" or |