From patchwork Sun Jul 7 05:28:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1128562 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.136; helo=silver.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="OPYS0IXT"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45hHFp6yjzz9s8m for ; Sun, 7 Jul 2019 15:29:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4949B204EC; Sun, 7 Jul 2019 05:29:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ECfjZ1lKQvDD; Sun, 7 Jul 2019 05:29:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D405C204E3; Sun, 7 Jul 2019 05:29:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 89D9D1BF956 for ; Sun, 7 Jul 2019 05:29:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8723D84506 for ; Sun, 7 Jul 2019 05:29:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p03KWuSUPsxm for ; Sun, 7 Jul 2019 05:29:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8FF10844D3 for ; Sun, 7 Jul 2019 05:29:18 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id i8so6003794pgm.13 for ; Sat, 06 Jul 2019 22:29:18 -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 :mime-version:content-transfer-encoding; bh=5o6PCskCymzBNT0CypYL0tOvHLU++nQ7F15CNgcXojs=; b=OPYS0IXTunM7BpfTOIkN4QK/F20vRTu4jg8vMCgP4YoT1akDztZK+/QRhGxFPwL6aA 3JM2A6BDHGmXA2RO7hFW3HngUBydncS22BbQ9wxf7gBusNoNkWb+ZTLEjzF3pG56BdLj 5UYkyaVhtjfdilsPBRLPASjD0/gRtm/DL2iiTsr8RFmJwifs6HRUEfzmHfxdWPQenVxE Jn8NKsOYw3jjpBBGltxyfEiTzTIPvln3s/nC+xmhaBRdTkobEfeQA4ZQYOWyNTtS0/sR emotzN0TWUdrZhIRD5Ab5C4vA5xkkl7ILGAG1ROgXKNZnGUupvzw00sgOUqZDmb3nkNx kMzg== 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:mime-version:content-transfer-encoding; bh=5o6PCskCymzBNT0CypYL0tOvHLU++nQ7F15CNgcXojs=; b=CQ2TLV/8lxwXvTQpX0QoO6SrTl6St50NVVatK7ayd4sKodrX2yR1sgqb16PN34jiRV fYESVCkdU/hdE7yhfFG39o4VX7TsoByjFVkCLIDb9Yl3CZsQuC+/KSg/jDGlEhyH96D3 HED8i2G1682N2glbQXrnKViFVKQA/5UpWegqIMRl4cJcIcQE6UDJUN1YCW1KHC5pYRo1 qb47ek6Q/gZ6kYUldNSCr4duAe5kX3IiDOK3OsNR559OnvggNkjbElzaW8nIbIpSCOZC 9NRWpV5eORFoRCrCjDxQ/4sGB7hHdtZ/Sg4ahRl/25f+OqI4e2hIt9kzmT4N6CLui4xt i8iA== X-Gm-Message-State: APjAAAXbVhfJLYdQya+xoKy/xIHVYCGo8Vz7R34kp1GQ7EDwdTdwl29e m5Rblfj5tubYymAI6qXNBQP1VzPpWxLmoQ== X-Google-Smtp-Source: APXvYqyg8nRjXcMeoXyBFIFH2atwz7rM0Xkvv9AddtyWGk2vHLVMtoq8+nylChd5tWvAvhwWTG2qPA== X-Received: by 2002:a65:498c:: with SMTP id r12mr14022315pgs.27.1562477357728; Sat, 06 Jul 2019 22:29:17 -0700 (PDT) Received: from localhost.localdomain ([123.201.194.71]) by smtp.gmail.com with ESMTPSA id j24sm18039214pgg.86.2019.07.06.22.29.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 06 Jul 2019 22:29:17 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Sun, 7 Jul 2019 10:58:10 +0530 Message-Id: <20190707052831.9469-10-itsatharva@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190707052831.9469-1-itsatharva@gmail.com> References: <20190707052831.9469-1-itsatharva@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 10/31] autobuild-run: move repo from kwargs to Builder class X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Atharva Lele , yann.morin.1998@free.fr, thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Atharva Lele Acked-by: Arnout Vandecappelle (Essensium/Mind) --- Changes v1 -> v2: - Explicitly state class constructor argument --- scripts/autobuild-run | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index 3bd10f7..e64f6db 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -273,7 +273,8 @@ class SystemInfo: class Builder: def __init__(self, instance, njobs, sysinfo, http_url, http_login, http_password, - submitter, make_opts, nice, toolchains_csv): + submitter, make_opts, nice, toolchains_csv, + repo): self.instance = instance self.njobs = njobs self.sysinfo = sysinfo @@ -284,6 +285,7 @@ class Builder: self.make_opts = make_opts self.nice = nice self.toolchains_csv = toolchains_csv + self.repo = repo def prepare_build(self, **kwargs): """Prepare for the next build of the specified instance @@ -336,7 +338,7 @@ class Builder: # didn't exist already. srcdir = os.path.join(idir, "buildroot") if not os.path.exists(srcdir): - ret = subprocess.call(["git", "clone", kwargs['repo'], srcdir], + ret = subprocess.call(["git", "clone", self.repo, srcdir], stdout=log, stderr=log) if ret != 0: log_write(log, "ERROR: could not clone Buildroot sources") @@ -863,9 +865,9 @@ def main(): submitter = args['--submitter'], make_opts = (args['--make-opts'] or ''), nice = (args['--nice'] or 0), - toolchains_csv = args['--toolchains-csv']) + toolchains_csv = args['--toolchains-csv'], + repo = args['--repo']) p = multiprocessing.Process(target=builder.run_instance, kwargs=dict( - repo = args['--repo'], upload = upload, buildpid = buildpid, debug = args['--debug']