From patchwork Thu Jun 23 16:46:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 9195593 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 A5DC96077D for ; Thu, 23 Jun 2016 16:42:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97C0E2843C for ; Thu, 23 Jun 2016 16:42:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C9442845F; Thu, 23 Jun 2016 16:42:58 +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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15EA62843C for ; Thu, 23 Jun 2016 16:42:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 108AA6E985; Thu, 23 Jun 2016 16:42:57 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTP id 48A816E987 for ; Thu, 23 Jun 2016 16:42:48 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 23 Jun 2016 09:42:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.26,517,1459839600"; d="scan'208"; a="1008305141" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by fmsmga002.fm.intel.com with ESMTP; 23 Jun 2016 09:42:40 -0700 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Thu, 23 Jun 2016 19:46:03 +0300 Message-Id: <1466700363-22009-2-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1466700363-22009-1-git-send-email-marius.c.vlad@intel.com> References: <1466700363-22009-1-git-send-email-marius.c.vlad@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/2] lib/drmtest: Report proper err message when opening the driver. 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 Signed-off-by: Marius Vlad CC: Chris Wilson --- lib/drmtest.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 1e28f60..d2ee2d1 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -261,7 +261,17 @@ int __drm_open_driver(int chipset) close(fd); } - igt_skip("No intel gpu found\n"); + switch (chipset & (DRIVER_INTEL | DRIVER_VC4 | DRIVER_VGEM)) { + case DRIVER_INTEL: + igt_skip("No intel gpu found\n"); + break; + case DRIVER_VC4: + igt_skip("No vc4 gpu found\n"); + break; + case DRIVER_VGEM: + igt_skip("No vgem support found\n"); + break; + } return -1; }