From patchwork Tue Sep 14 02:18:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13841 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 78168BDC71 for ; Tue, 14 Sep 2021 02:18:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C6C6D69187; Tue, 14 Sep 2021 04:18:54 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="EKV8PLth"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 376E26916F for ; Tue, 14 Sep 2021 04:18:53 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AE0722A5 for ; Tue, 14 Sep 2021 04:18:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1631585932; bh=pTkLY8xEgJ+v6r1FFrAgH59YKEgUIabEHfryWyItows=; h=From:To:Subject:Date:From; b=EKV8PLthhu1mMxA5O2CShpZlMlU/u/8nhKv7N85+6AJVvr1PeYsuUBEJWgg8xwOwa XEOtgs8kSv32qKTjko/csqlmrAxnEqIoNg+sqGIxjIQKAejQ7z58wMRVPSNow3bKi0 iEA0C+zGSSMDe2nOftc7Vr8MqUcsl3cz4HytBr7s= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 14 Sep 2021 05:18:19 +0300 Message-Id: <20210914021819.10375-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] test: v4l2_compat: Report test as skipped if no compatible driver found X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The V4L2 compatibility layer test includes a list of supported devices, as V4L2 compatibility isn't officially supported with all devices yet. If no supported device is present, the test reports success, while it actually hasn't run. Report it being skipped in that case. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- test/v4l2_compat/v4l2_compat_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py index ae892ced6127..be16af3bc5e6 100755 --- a/test/v4l2_compat/v4l2_compat_test.py +++ b/test/v4l2_compat/v4l2_compat_test.py @@ -147,6 +147,10 @@ def main(argv): print('success') drivers_tested[driver] = True + if len(drivers_tested) == 0: + print(f'No compatible drivers found') + return TestSkip + if len(failed) > 0: print(f'Failed {len(failed)} tests:') for device in failed: