test/sysfs_l3_parity: skip test if the sysfs interface doesn't exist

This commit is contained in:
Daniel Vetter 2012-05-31 15:45:17 +02:00
parent 4cf1b02e96
commit b558877f6e

View File

@ -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