tests: Allow a shell test to declare it doesn't need to be DRM master
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 19 Jul 2013 16:08:57 +0000 (17:08 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Fri, 19 Jul 2013 17:40:22 +0000 (18:40 +0100)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
tests/drm_lib.sh

index 2532352..25197d4 100755 (executable)
@@ -26,7 +26,8 @@ fi
 
 # read everything we can
 if [ `cat $i915_dfs_path/clients | wc -l` -gt "2" ] ; then
-       die "ERROR: other drm clients running"
+       [ -n "$DRM_LIB_ALLOW_NO_MASTER" ] || \
+               die "ERROR: other drm clients running"
 fi
 
 i915_sfs_path=