From patchwork Tue Oct 24 10:53:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Fiedorowicz X-Patchwork-Id: 10024135 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 8AFB260245 for ; Tue, 24 Oct 2017 10:53:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EFEB289C0 for ; Tue, 24 Oct 2017 10:53:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73DE1289F6; Tue, 24 Oct 2017 10:53:25 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7C2E7289C0 for ; Tue, 24 Oct 2017 10:53:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14BEC89F9F; Tue, 24 Oct 2017 10:53:23 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id D3B9889F9F for ; Tue, 24 Oct 2017 10:53:21 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP; 24 Oct 2017 03:53:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.43,427,1503385200"; d="scan'208"; a="1028679284" Received: from lfiedoro-desk1.igk.intel.com ([172.28.171.155]) by orsmga003.jf.intel.com with ESMTP; 24 Oct 2017 03:53:20 -0700 From: Lukasz Fiedorowicz To: intel-gfx@lists.freedesktop.org Date: Tue, 24 Oct 2017 12:53:06 +0200 Message-Id: <20171024105306.22334-1-lukasz.fiedorowicz@intel.com> X-Mailer: git-send-email 2.9.5 Subject: [Intel-gfx] [PATCH i-g-t] igt/lib: Ignoring subtest name case X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 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-Virus-Scanned: ClamAV using ClamSMTP Lists in intel-ci directory are kept in all lower case but the subtest names are mix of lower and upper case. Piglit is able to handle this but not every CI is using piglit. Changing condition to ignore subtest names case. Signed-off-by: Lukasz Fiedorowicz --- lib/igt_core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/igt_core.c b/lib/igt_core.c index 538a447..743e82b 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -965,10 +965,11 @@ bool __igt_run_subtest(const char *subtest_name) } if (run_single_subtest) { - if (uwildmat(subtest_name, run_single_subtest) == 0) + if (uwildmat(subtest_name, run_single_subtest) + || strcasecmp(subtest_name, run_single_subtest) == 0) + run_single_subtest_found = true; + else return false; - else - run_single_subtest_found = true; } if (skip_subtests_henceforth) {