diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-03 07:45:35 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-04 16:35:00 +0100 |
commit | ee0808982f40130d29691c37505dafcbf45f9da5 (patch) | |
tree | 84341a2eac4e98ddc1d96129d36db4af8b9fefb4 | |
parent | d8d1eab318f2f22c9199dcefc2b7b96ba4793cdc (diff) |
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 <daniel.vetter@ffwll.ch>
-rwxr-xr-x | tests/drm_lib.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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 |