selftests: ftrace: Check given string is not zero-length
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 7 Jul 2017 01:03:36 +0000 (10:03 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 26 Jul 2017 21:41:43 +0000 (15:41 -0600)
commit97e49368515830586b09ccadcdc567283b11afb9
tree393bd1651473f9361765549f65fa9d2cdacddf66
parent97bece60ef87d813cbe6f8f9b8e532a6a95d422a
selftests: ftrace: Check given string is not zero-length

Use [ ! -z "$VAR" ] instead of [ "$VAR" ] to check
whether the given string variable is not zero-length
since it obviously shows what it means.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <srostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/ftrace/ftracetest