[Buildroot] [PATCH v4 30/30] autobuild-run: make prepare_build() clean the output directory used for reproducibility testing
Atharva Lele
itsatharva at gmail.com
Thu Aug 1 02:46:43 UTC 2019
Signed-off-by: Atharva Lele <itsatharva at gmail.com>
---
Changes v3:
- New patch
---
scripts/autobuild-run | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index b32cd5b..7fcbf2a 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -380,6 +380,10 @@ class Builder:
# shutil.rmtree doesn't remove write-protected files
subprocess.call(["rm", "-rf", self.outputdir])
os.mkdir(self.outputdir)
+
+ # If it exists, remove the other output directory used for reproducibility testing
+ if os.path.exists(self.outputdir_1):
+ subprocess.call(["rm", "-rf", self.outputdir_1])
with open(os.path.join(self.outputdir, "branch"), "w") as branchf:
branchf.write(branch)
--
2.22.0
More information about the buildroot
mailing list