mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 17:06:14 +00:00
test/sysfs_l3_parity: skip test if the sysfs interface doesn't exist
This commit is contained in:
parent
4cf1b02e96
commit
b558877f6e
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! find /sys/class/drm/card*/ | grep l3_parity > /dev/null ; then
|
||||||
|
echo "no l3_parity interface, skipping test"
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
. $SOURCE_DIR/drm_lib.sh
|
. $SOURCE_DIR/drm_lib.sh
|
||||||
|
|
||||||
@ -20,5 +25,3 @@ if [ `$SOURCE_DIR/../tools/intel_l3_parity | wc -c` != "0" ] ; then
|
|||||||
echo "Fail"
|
echo "Fail"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user