From patchwork Wed Dec 19 00:02:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 10736651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB6F213B5 for ; Wed, 19 Dec 2018 00:03:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8B7A2B0FB for ; Wed, 19 Dec 2018 00:03:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D0102B104; Wed, 19 Dec 2018 00:03:10 +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 5B6D32B105 for ; Wed, 19 Dec 2018 00:03:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbeLSADJ (ORCPT ); Tue, 18 Dec 2018 19:03:09 -0500 Received: from mga01.intel.com ([192.55.52.88]:8278 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbeLSADJ (ORCPT ); Tue, 18 Dec 2018 19:03:09 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2018 16:03:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,370,1539673200"; d="scan'208";a="284784593" Received: from ldmartin-desk.jf.intel.com ([10.7.200.65]) by orsmga005.jf.intel.com with ESMTP; 18 Dec 2018 16:03:05 -0800 From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: Yauheni Kaliuta Subject: [PATCH 3/3] testsuite: move --show-exports test to use regex Date: Tue, 18 Dec 2018 16:02:29 -0800 Message-Id: <20181219000229.10793-3-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181219000229.10793-1-lucas.demarchi@intel.com> References: <20181219000229.10793-1-lucas.demarchi@intel.com> MIME-Version: 1.0 Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP This allows it to pass if the kernel is configured with CONFIG_MODVERSIONS. --- .../rootfs-pristine/test-modprobe/show-exports/correct.txt | 2 +- testsuite/test-modprobe.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt b/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt index bc2d045..0d659ef 100644 --- a/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt +++ b/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt @@ -1 +1 @@ -0x00000000 printA +0x[0-9a-fA-F]+ printA diff --git a/testsuite/test-modprobe.c b/testsuite/test-modprobe.c index 52a6621..1cace82 100644 --- a/testsuite/test-modprobe.c +++ b/testsuite/test-modprobe.c @@ -114,6 +114,7 @@ DEFINE_TEST(modprobe_show_exports, }, .output = { .out = TESTSUITE_ROOTFS "test-modprobe/show-exports/correct.txt", + .regex = true, });