From patchwork Mon Nov 27 21:49:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Derrick X-Patchwork-Id: 10078269 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9912460353 for ; Mon, 27 Nov 2017 21:51:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A06E2907C for ; Mon, 27 Nov 2017 21:51:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CAF42908F; Mon, 27 Nov 2017 21:51:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07B052907C for ; Mon, 27 Nov 2017 21:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751899AbdK0VvQ (ORCPT ); Mon, 27 Nov 2017 16:51:16 -0500 Received: from mga01.intel.com ([192.55.52.88]:52881 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702AbdK0VvP (ORCPT ); Mon, 27 Nov 2017 16:51:15 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2017 13:51:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,465,1505804400"; d="scan'208";a="10269751" Received: from unknown (HELO nsgse-neoncity02.localdomain) ([10.232.118.7]) by orsmga001.jf.intel.com with ESMTP; 27 Nov 2017 13:51:14 -0800 From: Jon Derrick To: Cc: Jens Axboe , Omar Sandoval , Jon Derrick Subject: [PATCH blktests] common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev Date: Mon, 27 Nov 2017 14:49:05 -0700 Message-Id: <1511819345-18092-1-git-send-email-jonathan.derrick@intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP At least one driver (VMD) uses 32-bit pci domains, but is effectively limited to 5-digit domains. Allow tests to access devices with 4-5 digit domains. Signed-off-by: Jon Derrick --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index 6b29c2b..09ce4ef 100644 --- a/common/rc +++ b/common/rc @@ -138,7 +138,7 @@ _test_dev_is_pci() { _get_pci_dev_from_blkdev() { readlink -f "$TEST_DEV_SYSFS/device" | \ - grep -Eo '[0-9a-f]{4}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]' | \ + grep -Eo '[0-9a-f]{4,5}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]' | \ tail -1 }