diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-09-29 12:08:31 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-09-30 17:54:02 +0100 |
commit | c2d5519906f3b7d75b4fbf14c61c5f54d9d75214 (patch) | |
tree | c10f32c86bceb3e0f1da48f540893e918e5c3478 | |
parent | 756764a4e78ac8b6ea294924d272431f98f695ca (diff) |
tests/sysfs_l3_parity: fix warnings in test enumeration
Source drm_lib.sh before skipping the test to ensure that subtest
enumeration is always handled correctly.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
-rwxr-xr-x | tests/sysfs_l3_parity | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sysfs_l3_parity b/tests/sysfs_l3_parity index e9d44110..9bd17246 100755 --- a/tests/sysfs_l3_parity +++ b/tests/sysfs_l3_parity @@ -1,13 +1,13 @@ #!/bin/bash +SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )" +. $SOURCE_DIR/drm_lib.sh + 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/drm_lib.sh - $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e #Check that we can remap a row |