projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a49f3e
)
selftests/ftrace: Fix bashisms
author
Naveen N. Rao
<naveen.n.rao@linux.vnet.ibm.com>
Tue, 16 May 2017 17:51:27 +0000
(23:21 +0530)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Thu, 18 May 2017 01:54:51 +0000
(21:54 -0400)
Fix a few bashisms in ftrace selftests.
Link:
http://lkml.kernel.org/r/5fbf4613eef0766918fa04e3ff537cae271223ee.1494956770.git.naveen.n.rao@linux.vnet.ibm.com
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/ftracetest
patch
|
blob
|
history
tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
patch
|
blob
|
history
tools/testing/selftests/ftrace/test.d/functions
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/ftrace/ftracetest
b/tools/testing/selftests/ftrace/ftracetest
index 32e6211e1c6e81f44028f9d3b0f78fb8f8c0eb0d..717581145cfcf9dbf8ec129c81c26ce81d4d9ddf 100755
(executable)
--- a/
tools/testing/selftests/ftrace/ftracetest
+++ b/
tools/testing/selftests/ftrace/ftracetest
@@
-58,7
+58,7
@@
parse_opts() { # opts
;;
--verbose|-v|-vv)
VERBOSE=$((VERBOSE + 1))
- [ $1 =
=
'-vv' ] && VERBOSE=$((VERBOSE + 1))
+ [ $1 = '-vv' ] && VERBOSE=$((VERBOSE + 1))
shift 1
;;
--debug|-d)
diff --git
a/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
b/tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
index 07bb3e5930b459b6ad52765ff92fb0fa416e603d..aa31368851c952e2f6e9dc78dd4a4915a36450fc 100644
(file)
--- a/
tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
+++ b/
tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
@@
-48,7
+48,7
@@
test_event_enabled() {
e=`cat $EVENT_ENABLE`
if [ "$e" != $val ]; then
echo "Expected $val but found $e"
- exit
-
1
+ exit 1
fi
}
diff --git
a/tools/testing/selftests/ftrace/test.d/functions
b/tools/testing/selftests/ftrace/test.d/functions
index 9aec6fcb7729ff0e7ec600ae91b80a24236b7bf6..f2019b37370d310cd845b6a42101d77cad77bc6b 100644
(file)
--- a/
tools/testing/selftests/ftrace/test.d/functions
+++ b/
tools/testing/selftests/ftrace/test.d/functions
@@
-34,10
+34,10
@@
reset_ftrace_filter() { # reset all triggers in set_ftrace_filter
echo > set_ftrace_filter
grep -v '^#' set_ftrace_filter | while read t; do
tr=`echo $t | cut -d: -f2`
- if [ "$tr" =
=
"" ]; then
+ if [ "$tr" = "" ]; then
continue
fi
- if [ $tr =
= "enable_event" -o $tr =
= "disable_event" ]; then
+ if [ $tr =
"enable_event" -o $tr
= "disable_event" ]; then
tr=`echo $t | cut -d: -f1-4`
limit=`echo $t | cut -d: -f5`
else