Skip to content

Commit

Permalink
selftests/ftrace: Fix checkbashisms errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masami Hiramatsu authored and Shuah Khan (Samsung OSG) committed Oct 24, 2018
1 parent 2452c96 commit 72ce3da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 72ce3da

Please sign in to comment.