From patchwork Tue Jun 11 12:32:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1113793 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.137; helo=fraxinus.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="hX03OBvA"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45NTvg6DkZz9sDB for ; Tue, 11 Jun 2019 22:34:07 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 18891834BE; Tue, 11 Jun 2019 12:34:05 +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 ecQs27ZwlHIn; Tue, 11 Jun 2019 12:34:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C5EEA8502A; Tue, 11 Jun 2019 12:34:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9625A1BF352 for ; Tue, 11 Jun 2019 12:34:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9389487B3E for ; Tue, 11 Jun 2019 12:34:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B1bBI0cHXREf for ; Tue, 11 Jun 2019 12:33:57 +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 hemlock.osuosl.org (Postfix) with ESMTPS id F0FEE87B39 for ; Tue, 11 Jun 2019 12:33:56 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id 19so6524896pfa.4 for ; Tue, 11 Jun 2019 05:33:56 -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:mime-version :content-transfer-encoding; bh=/XkIqZYPeXnjuj+3w1nKeC330prtG8s4Ab5wR47+x1c=; b=hX03OBvAA0JraB/29FW9KrAne2t9d3QpvtBNMFr6+eeI7GWvW64G+eYAlJiDXkYgkr 7PFBMT7Y2dLByMZjZh2j6am/P+/5oceAFBnOng7cObm6SvrSD4BLYjGdM6vv6QNh1zt8 fEwI/2rIk0mrRzC+cXtJhQibwNMzwkPGa1Ro5oLUAdjZQTtTvJZxsljDAc2rjlf/jCYI jA0FZQ7ZriHFzxjQ+SFoitcoF93QoPaG0HnG3k3cEmm6HB0q2DuatoO4iphUOrXfgVir CCh8/M8MERhOKFD6eI6v/VskHoWf6X3ZPHE7EmrCv/6qg12Nq6g4Ep9U9gR+qnQmWne7 k8BQ== 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:mime-version :content-transfer-encoding; bh=/XkIqZYPeXnjuj+3w1nKeC330prtG8s4Ab5wR47+x1c=; b=iUPgY2k4hiSvFshnw0Bjl5ar+NKCvAUbeX6/8kIICCbOog9J/JhfYhJS1ghtpw+v+J 4d4s+Ys17QsugBaF7Noa7bJPhduhp+wRcki8kZO4YtdUQ44SuYX1SQFe+e466o1XiSUl inZS/45sUvJXaiQuEzPJ6d/m8CIrfP1KPQC4AbXCTV79ibwnZkcpPtqs6DI/uc3xyPx7 8V2YPbKDNyiYYL8UwNKlFNpZ8Ojh5LQvXKqIqvO9wbGmLRANmu+cBgCWvc4daYrUlH28 CkRBIQDBPp60cgsOF9e648kKc6evM0n7vIJS6uadb9yjY1von+EkV9M1kL2RQkJDLf1U 0QJw== X-Gm-Message-State: APjAAAUeg+QjftFrAwd/tONk+3a9ujk6NAClA/l8/NM5s2IIeG8Yb2uI KqmMf6FFc3e4Kqv2eqNAA2qy0yjsdWo= X-Google-Smtp-Source: APXvYqyAtmPOVCnmG5bHZ6pZ6GTgQGzjLu9KaeiK4uQcp+Bp8wKIkb9AHDiTYEC6lf+CDL+LGMk+fw== X-Received: by 2002:a63:474a:: with SMTP id w10mr19615179pgk.352.1560256435845; Tue, 11 Jun 2019 05:33:55 -0700 (PDT) Received: from localhost.localdomain ([123.201.52.193]) by smtp.gmail.com with ESMTPSA id u2sm2812173pjv.30.2019.06.11.05.33.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 05:33:54 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Tue, 11 Jun 2019 18:02:34 +0530 Message-Id: <20190611123234.11385-1-itsatharva@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] autobuild-run: move creation of result directory to run_instance() 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" We need the result directory to be present when the check_reproducibility() function (implemented in the next patch) executes. As of now the results directory is created in the send_results() function which executes after check_reproducibility() will. Signed-off-by: Atharva Lele --- scripts/autobuild-run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index ef2f2a5..190a254 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -470,8 +470,6 @@ def send_results(result, **kwargs): srcdir = os.path.join(idir, "buildroot") resultdir = os.path.join(outputdir, "results") - os.mkdir(resultdir) - shutil.copyfile(os.path.join(outputdir, ".config"), os.path.join(resultdir, "config")) shutil.copyfile(os.path.join(outputdir, "defconfig"), @@ -647,6 +645,9 @@ def run_instance(**kwargs): if ret != 0: continue + resultdir = os.path.join(idir, "output", "results") + os.mkdir(resultdir) + ret = gen_config(**kwargs) if ret != 0: log_write(kwargs['log'], "WARN: failed to generate configuration")