[Buildroot] [PATCH v4 1/5] autobuild-run: check if reproducibile_results exists before checking its size
Atharva Lele
itsatharva at gmail.com
Tue Aug 20 14:52:27 UTC 2019
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 <itsatharva at gmail.com>
---
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
--
2.22.0
More information about the buildroot
mailing list