tests: fixup drm_lib.sh sourcing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Apr 2012 09:07:44 +0000 (11:07 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Apr 2012 09:13:06 +0000 (11:13 +0200)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/ZZ_hangman
tests/check_drm_clients
tests/debugfs_emon_crash
tests/debugfs_reader

index 9312724..80ed968 100755 (executable)
@@ -6,7 +6,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
 
 cd $i915_path
 
index 00a3485..fed00cd 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
 
 exit 0
index 613b55b..0f6c0a6 100755 (executable)
@@ -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
index 1230fa9..c17af2b 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
-. ./drm_lib.sh
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
 
 # read everything we can
 cat $i915_path/* > /dev/null 2>&1