From: Steven Rostedt (Red Hat) Date: Tue, 3 Feb 2015 20:45:13 +0000 (-0500) Subject: ktest: Place quotes around item variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c2c49eceb79eb4738f38a00270830057b5bfb76;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ktest: Place quotes around item variable Seems that some of the new console logic causes doprint to possibly get evaluated. When printing a commit message that contains parenthesis, it fails with a shell parsing error. This gets fixed when we add quotes around the $item variable, and prevent it from being evaluated by any shell commands. Signed-off-by: Steven Rostedt --- diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 840803b3cd41..d08e214ec6e7 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -3447,7 +3447,7 @@ sub patchcheck { my $sha1 = $item; $sha1 =~ s/^([[:xdigit:]]+).*/$1/; - doprint "\nProcessing commit $item\n\n"; + doprint "\nProcessing commit \"$item\"\n\n"; run_command "git checkout $sha1" or die "Failed to checkout $sha1";