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:
Daniel Vetter
2014-07-23 14:21:27 +02:00
parent 8cb89f7c4c
commit 91f536dc42
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -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