summaryrefslogtreecommitdiff
path: root/tests/sysfs_l3_parity
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-12-03 11:36:02 +0000
committerThomas Wood <thomas.wood@intel.com>2015-12-03 11:36:02 +0000
commit02cdd9899dbf56ae8b9ae8ee2b83e2afcd479193 (patch)
treefdcdfc4953f9601b5cb326409f8df9761207132c /tests/sysfs_l3_parity
parent8a58734c110375793306fc10a31d5b17e816471b (diff)
tests: add exit value constants for shell script tests
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/sysfs_l3_parity')
-rwxr-xr-xtests/sysfs_l3_parity6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sysfs_l3_parity b/tests/sysfs_l3_parity
index 9bd17246..6f14b84c 100755
--- a/tests/sysfs_l3_parity
+++ b/tests/sysfs_l3_parity
@@ -5,7 +5,7 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
if ! find /sys/class/drm/card*/ | grep l3_parity > /dev/null ; then
echo "no l3_parity interface, skipping test"
- exit 77
+ exit $IGT_EXIT_SKIP
fi
$SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
@@ -15,7 +15,7 @@ $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -d
disabled=`$SOURCE_DIR/../tools/intel_l3_parity -l | grep -c 'Row 0, Bank 0, Subbank 0 is disabled'`
if [ "$disabled" != "1" ] ; then
echo "Fail"
- exit 1
+ exit $IGT_EXIT_FAILURE
fi
$SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
@@ -23,5 +23,5 @@ $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
#Check that we can clear remaps
if [ `$SOURCE_DIR/../tools/intel_l3_parity -l | wc -l` != 1 ] ; then
echo "Fail 2"
- exit 1
+ exit $IGT_EXIT_FAILURE
fi