From patchwork Mon Jun 17 09:34:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1116919 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="WwOPD2bN"; 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 45S5fV245Kz9sN4 for ; Mon, 17 Jun 2019 19:35:14 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B277281FD3; Mon, 17 Jun 2019 09:35:09 +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 m5XAVTrUuZAr; Mon, 17 Jun 2019 09:35:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4FCAA84B22; Mon, 17 Jun 2019 09:35:07 +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 68F441BF3D5 for ; Mon, 17 Jun 2019 09:35:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6414220034 for ; Mon, 17 Jun 2019 09:35:06 +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 Cz5elafWBFbY for ; Mon, 17 Jun 2019 09:35:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by silver.osuosl.org (Postfix) with ESMTPS id B6B8520020 for ; Mon, 17 Jun 2019 09:35:05 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id 19so5373901pfa.4 for ; Mon, 17 Jun 2019 02:35:05 -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=fhx4fsa+S+l7Cqbveqbzjzb/ZGl6fcftGZz3+vzqP8A=; b=WwOPD2bNilMdGS6HnForwwC4dBSQ3Sl3XBm2yduy4afpQJdt1Y0vpwwpkI6gwlPFht J+q6HG6fJWa71lr46HjFYUGjJD3DbXoK+g96/YSCkYwP1T6bWeGGGzH69rZwzG94nQ4l Ejku32ZqZctgMuzh4jLM5Iuo/NNi+poWReM3F3iNilxdxSzhe0AWPCaF7NBBVlAVAj6j +N6GyexhDG9D7CqhqZ23w1XuQkmhRTWNOHJNlKOeSHqEAUMarYCOI4MDy5TFrYlRZta1 sD1TZBSkgkzLbNH1y8jrbG0lmn6uvMAZuwM/5t0ppUMxayDeLbcGToRuQIouGKQzGKrs UsMg== 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=fhx4fsa+S+l7Cqbveqbzjzb/ZGl6fcftGZz3+vzqP8A=; b=n9i9z+3qTSWSilHh2Mi0ZBcSDhwk98BDrzaLMq+uCK5jdHGo6M1Pnfu0drNO2ZfRdh gdNJzNk1hCLx9BNk4gF49X9r63V099wwg2hVvc9cCQErc/P77p8jp7KRle+WN7S7+1Wk 9wKWQFAy743oXrG/u5NwabcCV/35fRk1mzZ/IPAH8nJIvmW8aYux5wk/jyFlRGNgntyF FfD8eAJ9UuJesKwDIy7I7HzUXqXnrNbBiMR7GcMtJt6IqRnDyEGqvbDZvzdUQfWJQ4nO Qadh20vI35FmQUJjhhDkkzpEKjpgx/9uJ56Bmrm9FOtjixbKxHeAQ4PxxQ605mK3YGDm JFNg== X-Gm-Message-State: APjAAAVhsQ1YVbM/B3a7dxvwcvaUZSCM4YUM800/WvuaCZx9kXJHySwB M5M2cwyjV32lEZ8F4pgYd2zKkBqjWhj3Nw== X-Google-Smtp-Source: APXvYqwJbPHHwBs524YDYv3iksn6IbQrVVxizl01Ec1tKcPUVV22zK0AoqvsrDZrp8NqvkogQNBidQ== X-Received: by 2002:a63:b1b:: with SMTP id 27mr31872245pgl.244.1560764104513; Mon, 17 Jun 2019 02:35:04 -0700 (PDT) Received: from localhost.localdomain ([123.201.194.75]) by smtp.gmail.com with ESMTPSA id f3sm4538515pfg.165.2019.06.17.02.35.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 17 Jun 2019 02:35:03 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Mon, 17 Jun 2019 15:04:53 +0530 Message-Id: <20190617093456.6110-1-itsatharva@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5 1/4] 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 Reviewed-by: Yann E. MORIN --- Changes v4: Add new patch to series --- 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")