selftests/ftrace: Fix checkbashisms errors

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>
This commit is contained in:
Masami Hiramatsu 2018-08-30 23:16:41 +09:00 committed by Shuah Khan (Samsung OSG)
parent 2452c96e61
commit 72ce3daf92

View file

@ -39,10 +39,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
}