diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2013-06-27 16:54:42 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-01 18:54:40 +0200 |
commit | 3743a0b994a4e6035d9370ec658b70e0a8528c4a (patch) | |
tree | 2a4c297cd79ef4661de822733067ca98626bee5f /tests/drm_lib.sh | |
parent | 4541cbeba4fdd71c7e0a14d0803fa4f7ef345696 (diff) |
tests: rename debugfs base path to be more specific
In preparation to have sysfs entries used in scripts
rename to more specific name.
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/drm_lib.sh')
-rwxr-xr-x | tests/drm_lib.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/drm_lib.sh b/tests/drm_lib.sh index a76fd474..7eaf34e6 100755 --- a/tests/drm_lib.sh +++ b/tests/drm_lib.sh @@ -12,20 +12,20 @@ if [ -d /sys/kernel/debug/dri ] ; then debugfs_path=/sys/kernel/debug/dri fi -i915_path=x +i915_dfs_path=x for dir in `ls $debugfs_path` ; do if [ -f $debugfs_path/$dir/i915_error_state ] ; then - i915_path=$debugfs_path/$dir + i915_dfs_path=$debugfs_path/$dir break fi done -if [ $i915_path = "x" ] ; then +if [ $i915_dfs_path = "x" ] ; then die " i915 debugfs path not found." fi # read everything we can -if [ `cat $i915_path/clients | wc -l` -gt "2" ] ; then +if [ `cat $i915_dfs_path/clients | wc -l` -gt "2" ] ; then die "ERROR: other drm clients running" fi |