summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ftrace/test.d/instances/instance.tc
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-06-03 11:40:38 +0900
committerShuah Khan <skhan@linuxfoundation.org>2020-06-16 10:39:20 -0600
commit3591e90fe1108909f822948bd7628412282f7e9d (patch)
tree61db9ee8874c8585a02dc4a387dd6e3bea76d51d /tools/testing/selftests/ftrace/test.d/instances/instance.tc
parentfa33e6236f5fa425a3ccf8925010d51fae9f0929 (diff)
downloadlinux-sh-3591e90fe1108909f822948bd7628412282f7e9d.tar.gz
selftests/ftrace: Convert required interface checks into requires list
Convert the required tracefs interface checking code with requires: list. Fixed merge conflicts in trigger-hist.tc and trigger-trace-marker-hist.tc Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/instances/instance.tc')
-rw-r--r--tools/testing/selftests/ftrace/test.d/instances/instance.tc6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance.tc b/tools/testing/selftests/ftrace/test.d/instances/instance.tc
index b84651283bf3..607521d2592b 100644
--- a/tools/testing/selftests/ftrace/test.d/instances/instance.tc
+++ b/tools/testing/selftests/ftrace/test.d/instances/instance.tc
@@ -1,11 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test creation and deletion of trace instances
-
-if [ ! -d instances ] ; then
- echo "no instance directory with this kernel"
- exit_unsupported;
-fi
+# requires: instances
fail() { # mesg
rmdir x y z 2>/dev/null