From patchwork Fri Feb 19 12:34:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Feceoru, Gabriel" X-Patchwork-Id: 8360461 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56DC8C0553 for ; Fri, 19 Feb 2016 12:28:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B48320454 for ; Fri, 19 Feb 2016 12:28:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BA30F20452 for ; Fri, 19 Feb 2016 12:28:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2F356EF21; Fri, 19 Feb 2016 12:28:23 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id A03B56EF21 for ; Fri, 19 Feb 2016 12:28:20 +0000 (UTC) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 19 Feb 2016 04:28:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,470,1449561600"; d="scan'208";a="50844238" Received: from gfeceoru-ms-7924.rb.intel.com ([10.237.104.199]) by fmsmga004.fm.intel.com with ESMTP; 19 Feb 2016 04:28:20 -0800 From: Gabriel Feceoru To: intel-gfx@lists.freedesktop.org Date: Fri, 19 Feb 2016 14:34:53 +0200 Message-Id: <1455885293-10964-4-git-send-email-gabriel.feceoru@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455885293-10964-1-git-send-email-gabriel.feceoru@intel.com> References: <1455885293-10964-1-git-send-email-gabriel.feceoru@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 3/3] tests/kms_plane: Skip the test when configuration couldn't be applied 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-Spam-Status: No, score=-4.2 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 This could happen when the selected pipe cannot be used with the connected port due do HW constrains. bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86763 Signed-off-by: Gabriel Feceoru --- tests/kms_plane.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/kms_plane.c b/tests/kms_plane.c index d8bb484..33b8de5 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -68,6 +68,7 @@ test_grab_crc(data_t *data, igt_output_t *output, enum pipe pipe, drmModeModeInfo *mode; igt_plane_t *primary; char *crc_str; + int ret; igt_output_set_pipe(output, pipe); @@ -81,7 +82,8 @@ test_grab_crc(data_t *data, igt_output_t *output, enum pipe pipe, &fb); igt_plane_set_fb(primary, &fb); - igt_display_commit(&data->display); + ret = igt_display_commit(&data->display); + igt_skip_on(ret != 0); igt_pipe_crc_collect_crc(data->pipe_crc, crc);