tests: fixup drm_lib.sh sourcing

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2012-04-04 11:07:44 +02:00
parent e63f1870b4
commit bb86947638
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -1,5 +1,6 @@
#!/bin/sh
. ./drm_lib.sh
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
. $SOURCE_DIR/drm_lib.sh
exit 0

View File

@ -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

View File

@ -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