selftests/ftrace: Fix checkbashisms errors
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 30 Aug 2018 14:16:41 +0000 (23:16 +0900)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 24 Oct 2018 20:49:35 +0000 (14:49 -0600)
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>
tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc

index 79ce7d51350b37c4544159d00be8774e688f2b4e..df246e505af7d2b82a136f06f13b4d2dc43f9427 100644 (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
 }