diff mbox

[i-g-t] tests/vgem_reload_basic: Include drm_lib.sh to please check target.

Message ID 1466504631-8304-1-git-send-email-marius.c.vlad@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marius Vlad June 21, 2016, 10:23 a.m. UTC
Scripts are required to have it included.

Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
CC: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/vgem_reload_basic | 3 +++
 1 file changed, 3 insertions(+)

Comments

Chris Wilson June 21, 2016, 10:33 a.m. UTC | #1
On Tue, Jun 21, 2016 at 01:23:51PM +0300, Marius Vlad wrote:
> Scripts are required to have it included.

No. This breaks the test by requiring i915.
-Chris
diff mbox

Patch

diff --git a/tests/vgem_reload_basic b/tests/vgem_reload_basic
index b150b2c..d1897b3 100755
--- a/tests/vgem_reload_basic
+++ b/tests/vgem_reload_basic
@@ -5,6 +5,9 @@ 
 # ... we've broken this way too often :(
 #
 
+SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
+. $SOURCE_DIR/drm_lib.sh
+
 function unload() {
 	/sbin/rmmod vgem
 	# drm may be used by other devices (nouveau, radeon, udl, etc)