ktest: Fix post install command
authorSteven Rostedt <srostedt@redhat.com>
Sat, 26 Mar 2011 02:42:53 +0000 (22:42 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 20 May 2011 13:11:58 +0000 (09:11 -0400)
The command to run post install (for those that want initrds) was
broken. Instead of doing a substitution for the $KERNEL_VERSION
variable. It was replacing the entire command with nothing.

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

index 8ce792ea08e9f782d3e661dbbb99798839a08ed4..7301d0328858735cad6dd8db81c63c920589098e 100755 (executable)
@@ -907,7 +907,7 @@ sub install {
     return if (!defined($post_install));
 
     my $cp_post_install = $post_install;
-    $cp_post_install = s/\$KERNEL_VERSION/$version/g;
+    $cp_post_install =~ s/\$KERNEL_VERSION/$version/g;
     run_command "$cp_post_install" or
        dodie "Failed to run post install";
 }