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>
This commit is contained in:
Daniel Vetter 2015-12-03 07:45:35 +01:00
parent d8d1eab318
commit ee0808982f

View File

@ -34,6 +34,11 @@ for arg in $@ ; do
esac esac
done done
skip() {
echo "$@"
exit $IGT_EXIT_SKIP
}
die() { die() {
echo "$@" echo "$@"
exit $IGT_EXIT_FAILURE exit $IGT_EXIT_FAILURE
@ -60,7 +65,7 @@ for minor in `seq 0 16`; do
done done
if [ $i915_dfs_path = "x" ] ; then if [ $i915_dfs_path = "x" ] ; then
die " i915 debugfs path not found." skip " i915 debugfs path not found."
fi fi
# read everything we can # read everything we can