From patchwork Tue Aug 20 14:52:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1150216 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="pGh3VAOZ"; 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 46CYgw31JJz9sR0 for ; Wed, 21 Aug 2019 00:53:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BECFC2286C; Tue, 20 Aug 2019 14:53:12 +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 sI4SoIo2SPXh; Tue, 20 Aug 2019 14:53:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D21462040F; Tue, 20 Aug 2019 14:53:10 +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 6EEE01BF82B for ; Tue, 20 Aug 2019 14:52:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6BE3E87F92 for ; Tue, 20 Aug 2019 14:52:38 +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 5VBy6rFIysco for ; Tue, 20 Aug 2019 14:52:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id 08A0D81FB0 for ; Tue, 20 Aug 2019 14:52:38 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id d1so3393822pgp.4 for ; Tue, 20 Aug 2019 07:52:38 -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=TnGZlgPDbRkgy0mpPk/5kH8efatk8cqB2xTYXLUzqFU=; b=pGh3VAOZTrzCX7/PnmPZIFOQWZUdIVjdgfKd5smnxPJ/4VyQfQdTClo2WCTnT0hYnI 9wg9igKqw0HgMB3FxCT+kx+eJ/7F1ck3U7JBYEQ3zpburVVK8egwsL5K/AOdBZT0KZyp Q7u/xhM8n5v01/1rqahIftNdtVbMV5lSgbEJib/iDkiomFDa4YKWqgMqxnkmVldz+iWy wyHVOV93R6OBZj2ieE4mjQXvx0S8PjZ3O0TpCkKXewjUrzMTEmE9e300ZqxYyra9i+5Y e4Xtmm0H45OMxeOwbvLoDWJFtkf01RiUGUM/ShLt4j/HBNQLWqoKR87bZTaZsKSfgyuU /uuA== 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=TnGZlgPDbRkgy0mpPk/5kH8efatk8cqB2xTYXLUzqFU=; b=XnuE9we0fUyOKAZsFHltDEb3yRXM5WdgMf8RWEw86FoJmXmz3rJ9Tkd/XhqDhEWBOB fwlBJ9CPx2aKlWXni40zXfa7UYOXIeV+VLhiJkeTRmvz69bm+2v2j4cHVrljD/A2+oRz Z0WufmlyFTmQKigmUVKZGF++2f4Gncc75lGmhNf85TpxyoJH5PmAgwChBAOWFL0JRYcW 1FsYI2fnoTNRTtKUfv+L89LQyPkkxzmftQ/oQXObgjHRUkw3Pz0ARSxxFpKy/15qliFw y++xocpa6eYTxlccFEsZjOCBIIekm0qvch6jWWtlZcri/ZVXHrWQ+PHsWTUZpOiWGE/w rIrQ== X-Gm-Message-State: APjAAAX/QpPZGERNbIbAMgNY7+eebxjjMnhlV/S6oqxZuo4Lj5ZXJT8k autjFiWgiVUaFuu6eQ5PW7GsrryVhxE= X-Google-Smtp-Source: APXvYqwfhTKbBLw5Ok56A51jPbaZEGwMew2gQxAtA0aVK2HQ0FEgyZxjMdXMMKdV/8nvGihR3V3pfg== X-Received: by 2002:a65:464d:: with SMTP id k13mr22422690pgr.99.1566312756992; Tue, 20 Aug 2019 07:52:36 -0700 (PDT) Received: from localhost.localdomain ([123.201.116.168]) by smtp.gmail.com with ESMTPSA id a1sm24502643pgh.61.2019.08.20.07.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 07:52:36 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Tue, 20 Aug 2019 20:22:27 +0530 Message-Id: <20190820145231.15507-1-itsatharva@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4 1/5] autobuild-run: check if reproducibile_results exists before checking its size 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 , thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This was causing some reproducible configs to crash autobuild script since it tried to check the size of a file that did not exist. Signed-off-by: Atharva Lele --- scripts/autobuild-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index ead81a0..99b57dd 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -461,7 +461,7 @@ class Builder: log_write(self.log, "INFO: diffoscope not installed, falling back to cmp") subprocess.call(["cmp", "-b", build_1_image, build_2_image], stdout=diff, stderr=self.log) - if os.stat(reproducible_results).st_size > 0: + if os.path.exists(reproducible_results) and os.stat(reproducible_results).st_size > 0: log_write(self.log, "INFO: Build is non-reproducible.") return -1