From 0b50b9ceca5fc604550537297e786d876d28508a Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Mon, 3 Aug 2015 10:03:29 +0000 Subject: Stop moving staging areas of failed builds Stop moving staging areas of failed builds from the 'staging' directory to the 'failed' directory. Moving staging areas make it very difficult to debug build failures on the build essential chunks, as the paths set on the configure scripts and some environment variables (e.g. STAGE2_SYSROOT, DESTDIR) will be invalid after moving the staging area. This change will also make it easier to create scripts that chroot n environment similiar to the one where the build failure occurred. To make it still possible to safely do a build an run `morph gc` in parallel, we use flock(2) to control access to the staging area directory. Also, move the `test_supports_non_isolated_mode` test into a different class, as it requires a different SetUp() routine (the staging area is contructed with different parameters). Change-Id: I06c3c435ad05c12afabc0adc2a9d4f8a284ccc02 --- morphlib/builder.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'morphlib/builder.py') diff --git a/morphlib/builder.py b/morphlib/builder.py index 39af4146..038fd5ba 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -303,8 +303,6 @@ class ChunkBuilder(BuilderBase): os.rename(temppath, logpath) else: logging.error("Couldn't find build log at %s", temppath) - - self.staging_area.abort() raise self.staging_area.chroot_close() -- cgit v1.2.1