Skip to content

Commit 72ce3da

Browse files
mhiramatShuah Khan (Samsung OSG)
authored andcommitted
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>
1 parent 2452c96 commit 72ce3da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-snapshot.tc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ test_trace() {
3939
fi
4040
echo "testing $line for >$x<"
4141
match=`echo $line | sed -e "s/>$x<//"`
42-
if [ "$line" == "$match" ]; then
42+
if [ "$line" = "$match" ]; then
4343
fail "$line does not have >$x< in it"
4444
fi
45-
let x=$x+2
45+
x=$((x+2))
4646
done
4747
}
4848

0 commit comments

Comments
 (0)