From: Thomas Wood Subject: [PATCH i-g-t 4/4] tests/sysfs_l3_parity: fix warnings in test enumeration Date: Mon, 29 Sep 2014 16:28:18 +0100 Message-ID: <1412004498-8449-4-git-send-email-thomas.wood@intel.com> References: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 10D2972394 for ; Mon, 29 Sep 2014 08:28:24 -0700 (PDT) Received: by mail-wi0-f170.google.com with SMTP id n3so3010079wiv.5 for ; Mon, 29 Sep 2014 08:28:24 -0700 (PDT) In-Reply-To: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Source drm_lib.sh before skipping the test to ensure that subtest enumeration is always handled correctly. Signed-off-by: Thomas Wood --- tests/sysfs_l3_parity | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/sysfs_l3_parity b/tests/sysfs_l3_parity index e9d4411..9bd1724 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 -- 2.1.0