From ee0808982f40130d29691c37505dafcbf45f9da5 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 3 Dec 2015 07:45:35 +0100 Subject: tests/drm_lib.sh: Skip when i915 debugfs wasn't found Instead of failing. We might want to move this into i915 tests eventually, but this is good for now. v2: Use the correct exit code (Derek) and use the new symbolic values Thomas added. Signed-off-by: Daniel Vetter --- tests/drm_lib.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/drm_lib.sh b/tests/drm_lib.sh index d2c6420d..2ba146ba 100755 --- a/tests/drm_lib.sh +++ b/tests/drm_lib.sh @@ -34,6 +34,11 @@ for arg in $@ ; do esac done +skip() { + echo "$@" + exit $IGT_EXIT_SKIP +} + die() { echo "$@" exit $IGT_EXIT_FAILURE @@ -60,7 +65,7 @@ for minor in `seq 0 16`; do done if [ $i915_dfs_path = "x" ] ; then - die " i915 debugfs path not found." + skip " i915 debugfs path not found." fi # read everything we can -- cgit v1.2.3