summaryrefslogtreecommitdiff
path: root/tests/debugfs_emon_crash
diff options
context:
space:
mode:
Diffstat (limited to 'tests/debugfs_emon_crash')
-rwxr-xr-xtests/debugfs_emon_crash3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/debugfs_emon_crash b/tests/debugfs_emon_crash
index 613b55b9..0f6c0a65 100755
--- a/tests/debugfs_emon_crash
+++ b/tests/debugfs_emon_crash
@@ -4,7 +4,8 @@
# by reading /sys/kernel/debug/dri/0/i915_emon_status too quickly
#
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
for z in $(seq 1 1000); do
cat $i915_path/i915_emon_status > /dev/null