mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 15:26:21 +00:00
tests: Move root check to lib/drm_lib.sh
All tests want that anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
8cb89f7c4c
commit
91f536dc42
@ -34,6 +34,8 @@ if [ `cat $i915_dfs_path/clients | wc -l` -gt "2" ] ; then
|
||||
die "ERROR: other drm clients running"
|
||||
fi
|
||||
|
||||
whoami | grep -q root || ( echo ERROR: not running as root; exit 1 )
|
||||
|
||||
i915_sfs_path=
|
||||
if [ -d /sys/class/drm ] ; then
|
||||
sysfs_path=/sys/class/drm
|
||||
|
@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
whoami | grep root || ( echo ERROR: not running as root; exit 1 )
|
||||
|
||||
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
||||
. $SOURCE_DIR/drm_lib.sh
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
# Test some of the most critical tools we have accidentally broken before.
|
||||
# TODO: Possibly make tests parse output
|
||||
|
||||
whoami | grep -q root || ( echo ERROR: not running as root; exit 1 )
|
||||
|
||||
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
||||
. $SOURCE_DIR/drm_lib.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user