From patchwork Sat Jun 29 05:01:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1124675 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.138; helo=whitealder.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="uaq9jB5K"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45bM2m6xnxz9s5c for ; Sat, 29 Jun 2019 15:02:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4843287729; Sat, 29 Jun 2019 05:02:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nx2xmgIqNc8M; Sat, 29 Jun 2019 05:02:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8953C8770C; Sat, 29 Jun 2019 05:02:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1DD0B1BF296 for ; Sat, 29 Jun 2019 05:02:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1ABAF20485 for ; Sat, 29 Jun 2019 05:02:53 +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 AVF6v3M9PCwr for ; Sat, 29 Jun 2019 05:02:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by silver.osuosl.org (Postfix) with ESMTPS id 1024A2047A for ; Sat, 29 Jun 2019 05:02:51 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id d126so3972691pfd.2 for ; Fri, 28 Jun 2019 22:02:51 -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=JAPXrcnBuSH30iHbMYaokrvT/qIPRenmtT1T7psa66k=; b=uaq9jB5KFW6Yl4Vkhyj4un3AUIAaBru2dQCqlfdKCzYnt89SlST8WLIQ8GaHTIYVlt LzNVfSd3FqI7T99xmbTjVTCi8Et6iDJyWUWlUPkY6bW8V1LJYl1fUyRl0qaXp4Po/u8j 4P3BEia6SPJkjgoQVMdylXBJqDsggxKugwTNQaXDbASHO36svhsPt+xITrvzQZMN49q6 EQ6IesulTatDfFRrgCiCuhis3xwdDJVnhkPOP0FU+SHrA1oHq+X+goGYBg60htxaiBPO CNroShU4CMeQyu3lUcB/1cW7I3HyxGfYOMHrNDBFuo7GuxNd78SGJvjBcB0NeRzCV0dW nXPg== 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=JAPXrcnBuSH30iHbMYaokrvT/qIPRenmtT1T7psa66k=; b=rE4hATOEuYS7H9j3KJatppK+/+wa3mAw9ngEVJS16Jnphdg9UZPZ8r77BdY6JwseHN 4HY4hQ/cc9pQMXsCHlKKjoRlv2O6HPRAd0Fo4I5j2h17oWAwL8xA87AyiN+hbaie/BqP VpLXiZBLbfzuQbRMKk00wxLDcysmVf2PfFNFgiynxtglllYWc0m6WQqmVDAH6daqXQzV DOOEE3p+T7WlCRl3FIICb/BggwI9y1vxH0EaSfPDM0Xsd/oeGRC1c61p2B567UrQHYnQ PGCJPEjndFdaSOrOsIETcyqKkNxhq064hv7ZE8QtvxYEPvfHRBe5JsmAMhuvfgI03LeQ DXjA== X-Gm-Message-State: APjAAAXTYAQeszN1xppFcJiMtwgzR2W8d+R5pMruZShCziGr78JnP0Ll LPfHvM7zFtPtvDuQEse9+CUSLPTt6M0mzyPf X-Google-Smtp-Source: APXvYqwolWhu48iZBh2E1F4hz4K9uRtPWBCowJB32G4x9AdMJLpRHfIF/H0lI5aAqoG0CY7+kuL4Gg== X-Received: by 2002:a17:90a:1904:: with SMTP id 4mr17941998pjg.116.1561784570213; Fri, 28 Jun 2019 22:02:50 -0700 (PDT) Received: from localhost.localdomain ([123.201.100.132]) by smtp.gmail.com with ESMTPSA id y14sm3313541pjr.13.2019.06.28.22.02.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 22:02:49 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Sat, 29 Jun 2019 10:31:57 +0530 Message-Id: <20190629050214.17852-10-itsatharva@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190629050214.17852-1-itsatharva@gmail.com> References: <20190629050214.17852-1-itsatharva@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 10/27] 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 9c1dbe8..1cc52ed 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']