From patchwork Thu Aug 2 17:29:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 952915 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41hHKv0cw7z9s2g for ; Fri, 3 Aug 2018 03:32:03 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="LRE55tK9"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41hHKt6HKrzF2DN for ; Fri, 3 Aug 2018 03:32:02 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="LRE55tK9"; dkim-atps=neutral X-Original-To: Petitboot@lists.ozlabs.org Delivered-To: Petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="LRE55tK9"; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41hHH73mzbzF27H for ; Fri, 3 Aug 2018 03:29:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5wZ60ZCl/YTR/WGzs4cRraVtCH59FCa5gVMDzSco26w=; b=LRE55tK99o9XOWn+OWDNWkPUi CHmFHXI41GNR4uZH2IFBfYbhCvz1f4BaA/p4WBdUdI0c8k8oKEFlp8WNOh7ChcQ9cSXSnwOsz10C3 9pWff36SLytSYGMntKywTh4g3Z77+Lmk5p7BvRNjhkMLklz6dLgaOGa86XUCwEis39emwgDNcnPdy qPOF3a54zX2Xvl6EO1A+6F+ZqLPBE1zSQQ8CHi84/b2z0dqXfie3n7FvGwLrGCpqjE8LCD5vnUi9I ElMu2MUHJ9eO68icnHucgHVeigB+OFt2pydykv4ycz/OcIOFPJ62PGl1XzyYZDeoKTUOMnZoT0hq1 RZxiutdgQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1flHPr-0007XT-49; Thu, 02 Aug 2018 17:29:35 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Thu, 2 Aug 2018 10:19:53 -0700 Subject: [PATCH v2 10/30] test/parser: Add parser_is_unique To: Samuel Mendoza-Jonas Date: Thu, 02 Aug 2018 17:29:35 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ge Song , Petitboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Signed-off-by: Geoff Levand --- test/parser/utils.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/parser/utils.c b/test/parser/utils.c index c6d1a17..d8499a4 100644 --- a/test/parser/utils.c +++ b/test/parser/utils.c @@ -371,6 +371,18 @@ err_cleanup: return -1; } +bool parser_is_unique(struct discover_context *ctx, struct discover_device *dev, + const char *filename, struct list *found_list) +{ + (void)ctx; + (void)dev; + (void)filename; + (void)found_list; + + /* Just let the parser process everything. */ + return true; +} + struct load_url_result *load_url_async(void *ctx, struct pb_url *url, load_url_complete async_cb, void *async_data, waiter_cb stdout_cb, void *stdout_data)