mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 08:26:10 +00:00
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:
parent
d8d1eab318
commit
ee0808982f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user