summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell/base_probe/test_line_semantics.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/shell/base_probe/test_line_semantics.sh')
-rwxr-xr-xtools/perf/tests/shell/base_probe/test_line_semantics.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/tests/shell/base_probe/test_line_semantics.sh b/tools/perf/tests/shell/base_probe/test_line_semantics.sh
index 20435b6bf6bc..576442d87a44 100755
--- a/tools/perf/tests/shell/base_probe/test_line_semantics.sh
+++ b/tools/perf/tests/shell/base_probe/test_line_semantics.sh
@@ -13,11 +13,12 @@
# arguments are properly reported.
#
-# include working environment
-. ../common/init.sh
-
+DIR_PATH="$(dirname $0)"
TEST_RESULT=0
+# include working environment
+. "$DIR_PATH/../common/init.sh"
+
if ! check_kprobes_available; then
print_overall_skipped
exit 2