summaryrefslogtreecommitdiff
path: root/tests/sysfs_l3_parity
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-09-10 10:40:54 -0700
committerBen Widawsky <benjamin.widawsky@intel.com>2013-09-20 09:42:07 -0700
commitbfa7a5906d53a016b43eaa5592d91c1fb955daf7 (patch)
tree0be59e49180c86c7d6ea68f0f1080cbdd8fdea8d /tests/sysfs_l3_parity
parent5f95ea780bba6027767b3f3411ce41717317e879 (diff)
intel_l3_parity: Support error injection
Haswell added the ability to inject errors which is extremely useful for testing. Add two arguments to the tool to inject, and uninject. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests/sysfs_l3_parity')
-rwxr-xr-xtests/sysfs_l3_parity2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sysfs_l3_parity b/tests/sysfs_l3_parity
index a0dfad9c9..e9d44110a 100755
--- a/tests/sysfs_l3_parity
+++ b/tests/sysfs_l3_parity
@@ -21,7 +21,7 @@ fi
$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 -c` != "0" ] ; then
+if [ `$SOURCE_DIR/../tools/intel_l3_parity -l | wc -l` != 1 ] ; then
echo "Fail 2"
exit 1
fi