selftests/ftrace: Fix checkbashisms errors
[ Upstream commit 72ce3daf92 ]
Fix a test case to make checkbashisms clean.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4c70a7576a
commit
6721b33aa9
@@ -47,10 +47,10 @@ test_trace() {
|
||||
fi
|
||||
echo "testing $line for >$x<"
|
||||
match=`echo $line | sed -e "s/>$x<//"`
|
||||
if [ "$line" == "$match" ]; then
|
||||
if [ "$line" = "$match" ]; then
|
||||
fail "$line does not have >$x< in it"
|
||||
fi
|
||||
let x=$x+2
|
||||
x=$((x+2))
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user