diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-08-30 23:16:41 +0900 |
---|---|---|
committer | Shuah Khan (Samsung OSG) <shuah@kernel.org> | 2018-10-24 14:49:35 -0600 |
commit | 72ce3daf92ba4f5bae6e91095d40e67b367c6b2f (patch) | |
tree | 05ea3f52f055b5453d363ffb265d7ff11bb66d7f /tools | |
parent | 2452c96e617a0ff6fb2692e55217a3fa57a7322c (diff) | |
download | linux-72ce3daf92ba4f5bae6e91095d40e67b367c6b2f.tar.bz2 |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc index 79ce7d51350b..df246e505af7 100644 --- a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc +++ b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc @@ -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 } |