Skip to content

Commit 7c2c49e

Browse files
committed
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 <[email protected]>
1 parent 1cb9e64 commit 7c2c49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ sub patchcheck {
34473447
my $sha1 = $item;
34483448
$sha1 =~ s/^([[:xdigit:]]+).*/$1/;
34493449

3450-
doprint "\nProcessing commit $item\n\n";
3450+
doprint "\nProcessing commit \"$item\"\n\n";
34513451

34523452
run_command "git checkout $sha1" or
34533453
die "Failed to checkout $sha1";

0 commit comments

Comments
 (0)