Commit 1e6b485c authored by Masami Hiramatsu (Google)'s avatar Masami Hiramatsu (Google) Committed by Shuah Khan

selftests/ftrace: Fix bash specific "==" operator

Since commit a1d6cd88 ("selftests/ftrace: event_triggers: wait
longer for test_event_enable") introduced bash specific "=="
comparation operator, that test will fail when we run it on a
posix-shell. `checkbashisms` warned it as below.

possible bashism in ftrace/func_event_triggers.tc line 45 (should be 'b = a'):
        if [ "$e" == $val ]; then

This replaces it with "=".

Fixes: a1d6cd88 ("selftests/ftrace: event_triggers: wait longer for test_event_enable")
Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 787fccb3
...@@ -42,7 +42,7 @@ test_event_enabled() { ...@@ -42,7 +42,7 @@ test_event_enabled() {
while [ $check_times -ne 0 ]; do while [ $check_times -ne 0 ]; do
e=`cat $EVENT_ENABLE` e=`cat $EVENT_ENABLE`
if [ "$e" == $val ]; then if [ "$e" = $val ]; then
return 0 return 0
fi fi
sleep $SLEEP_TIME sleep $SLEEP_TIME
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment