selftests/ftrace: Fix checkbashisms errors

[ Upstream commit 72ce3daf92ba4f5bae6e91095d40e67b367c6b2f ]

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:
Masami Hiramatsu 2018-08-30 23:16:41 +09:00 committed by Greg Kroah-Hartman
parent 4c70a7576a
commit 6721b33aa9

View File

@ -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
}