From patchwork Sun Apr 29 14:33:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Martincoski X-Patchwork-Id: 906349 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EKbQx61V"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40YqvJ1cXmz9rxx for ; Mon, 30 Apr 2018 00:34:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3D7E289286; Sun, 29 Apr 2018 14:34:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zNSSbNPj23a1; Sun, 29 Apr 2018 14:34:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id DCD548929E; Sun, 29 Apr 2018 14:34:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 625461BFFE1 for ; Sun, 29 Apr 2018 14:34:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E78C877F4 for ; Sun, 29 Apr 2018 14:34:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T6aywvYnrwsA for ; Sun, 29 Apr 2018 14:34:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 26E89877F2 for ; Sun, 29 Apr 2018 14:34:39 +0000 (UTC) Received: by mail-qk0-f193.google.com with SMTP id z8so4961195qki.11 for ; Sun, 29 Apr 2018 07:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=bPTPVJ9Iz92ERmBp2qTNogFk5TKTBqzRRUYemt7tH24=; b=EKbQx61VKZbHerwXMBu2Jll1hHRJz4ik9JWfx64bmFGWVshstSbCQ6ffiqShLCUNRu hf3ak8t8i5bCGC2HdQw8gcKSzRH8j87zCDB0prM7F8ytyrhL4QH38+kh6OyEHKicBXrZ PgR0MsLpvxyqotJT6jA07uZyOMIApS4EduPs0xSzwRlIIoh41w9L5ypn4Fug12m9WWct UxLOcHu59YVeRMxWANXNUmWEs456maRJyGt2Gb7kPFe2JLZ526OUAGMregw3uRTKr3On IRCvt2pQV9DTGRFnSsaspcH3KLRmwCSH45Pt9XM7OBHnI75qTnCz2yqNvObvCF3UfbSE bTKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=bPTPVJ9Iz92ERmBp2qTNogFk5TKTBqzRRUYemt7tH24=; b=msE3n52wXWnDdywmlS0WiXmhTeVZDFa0ENkvh/ZIVITewTEzqOcCsqCWpYuRa733BQ nph8RWJ9pmJHBA52/iPY9wdGXAqUht+m/PU6yHMQVpXL+5wdKyRGzUAUbr+cwjEm0K5H sEC9t80mN6dKVpN3ZqYeOF8K6bD3U3YapUVrsjC2bPEiSaJDb6ZNgqVXQnpy+bCByPth CTucF+aO7xxt2CPBM2GYJGFOeWVrpQYSh8Ce7GPq8D3nEHBUdbGXyYimVxNyG2U9BoDK WzwxaOGoqOt6bdeYcK/gLk38FEymtkenOCcmIDuXUy4dtXsoHvI9HyFZtBWaeAJqZU53 eAYw== X-Gm-Message-State: ALQs6tALi2GuC2sDJVZA3NuR48ehlGVy5V/ksqLl3ZUm/5hF9ToeMJWp btKS+qtPbMmeOyXPnP+1DMT+Wg== X-Google-Smtp-Source: AB8JxZpecQJEqrF5plzcn7egsJ9KI1GYZ7LhTRRP+sZiPig7x5nwLofyyTIzVVvBhjEmRg1kb7FT5w== X-Received: by 10.233.235.211 with SMTP id b202mr8026014qkg.27.1525012477962; Sun, 29 Apr 2018 07:34:37 -0700 (PDT) Received: from ultri4.home (189.27.152.162.dynamic.adsl.gvt.net.br. [189.27.152.162]) by smtp.gmail.com with ESMTPSA id s39-v6sm5549611qts.43.2018.04.29.07.34.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Apr 2018 07:34:37 -0700 (PDT) From: Ricardo Martincoski To: buildroot@buildroot.org Date: Sun, 29 Apr 2018 11:33:40 -0300 Message-Id: <20180429143349.24010-4-ricardo.martincoski@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180429143349.24010-1-ricardo.martincoski@gmail.com> References: <20180429143349.24010-1-ricardo.martincoski@gmail.com> In-Reply-To: <20171029140608.26200-1-ricardo.martincoski@datacom.ind.br> References: <20171029140608.26200-1-ricardo.martincoski@datacom.ind.br> Subject: [Buildroot] [PATCH v4] testing/infra/basetest: support br2-external X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ricardo Martincoski , Thomas Petazzoni , Luca Ceresoli , "Yann E . MORIN" , Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Ricardo Martincoski This change will be needed when adding a common class to test the git download infra. Signed-off-by: Ricardo Martincoski Cc: Arnout Vandecappelle --- Changes v3 -> v4: - allow the use of multiple br2-external trees, simplifying the code Changes v2 -> v3: - new patch - search for "support for BR2_EXTERNAL directly in BRTest" in http://patchwork.ozlabs.org/patch/806161/ --- support/testing/infra/basetest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py index 4773312585..67076701e7 100644 --- a/support/testing/infra/basetest.py +++ b/support/testing/infra/basetest.py @@ -29,6 +29,7 @@ MINIMAL_CONFIG = \ class BRTest(unittest.TestCase): config = None + br2_external = list() downloaddir = None outputdir = None logtofile = True @@ -55,7 +56,7 @@ class BRTest(unittest.TestCase): self.b.delete() if not self.b.is_finished(): - self.b.configure() + self.b.configure(["BR2_EXTERNAL={}".format(":".join(self.br2_external))]) def tearDown(self): self.show_msg("Cleaning up")