Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masami Hiramatsu and committed by
Shuah Khan (Samsung OSG)
72ce3daf 2452c96e

+2 -2
+2 -2
tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc
··· 39 39 fi 40 40 echo "testing $line for >$x<" 41 41 match=`echo $line | sed -e "s/>$x<//"` 42 - if [ "$line" == "$match" ]; then 42 + if [ "$line" = "$match" ]; then 43 43 fail "$line does not have >$x< in it" 44 44 fi 45 - let x=$x+2 45 + x=$((x+2)) 46 46 done 47 47 } 48 48