From patchwork Mon Sep 29 15:28:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 4997691 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A9C669F2BA for ; Mon, 29 Sep 2014 15:47:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E80672017D for ; Mon, 29 Sep 2014 15:47:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 25D8F2016C for ; Mon, 29 Sep 2014 15:47:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6ACA07351A; Mon, 29 Sep 2014 08:47:05 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=NkA2knrI2lQyQjxhnGd0zPxoa6h/IXm47HnwNY6H01I=; b=hmOUQI4pyKR48VgC0/sJWEnB8MxsJN1m1hd79fTO4mXMZUY10iNPgR8DhfRPZZh20S HnJyS0ZT3exU6OVPwn2w9L1DIyKvoJ0h8dhBzvCNFtaxbCtQUwUIbv1SqzhWo7Jjcwip UFdm9rlLieUyRC30GZFzHiuqYdbom9eUfE4t7W6H9n7Dnzt72AYxgfWA+vx3JpoJjRKg Uy+Yjgf6hEM7G+Crcf834EWdxtcIazwJXK0/cVRlrw6+o2qL0eoms6RfERvxlKHov8Ee TLWjgAr/eavIXEifqiebmrG07r+DB6dyaLcVcFJaGvKAUx8BkAWN9Hrm29mOaJkB7DXP Ql/g== X-Gm-Message-State: ALoCoQn7Onygayip8aLeQM0GTwRlpnp1zccC143rchG8NR8SLyFpuhGcd2Dl8rAe41n4ASMftyzs X-Received: by 10.194.94.165 with SMTP id dd5mr44346428wjb.75.1412004503943; Mon, 29 Sep 2014 08:28:23 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id ua8sm16089212wjc.7.2014.09.29.08.28.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Sep 2014 08:28:23 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Mon, 29 Sep 2014 16:28:18 +0100 Message-Id: <1412004498-8449-4-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> References: <1412004498-8449-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 4/4] tests/sysfs_l3_parity: fix warnings in test enumeration X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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