mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 16:06:25 +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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user