diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-11 18:06:37 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-11 18:42:56 +0900 |
commit | d46fbbcbfec7f44cfa3d412b70000eff633b85bb (patch) | |
tree | 2ab94501109c9ba3e624b5c385a47b2c86385896 /tests | |
parent | cb38665143e6a93f21a08416c869f996b528459f (diff) | |
download | buildstream-d46fbbcbfec7f44cfa3d412b70000eff633b85bb.tar.gz |
element.py: Preserve workspace state in failed build sandboxes.
As reported in regression #346, since we started mounting the workspaces
we now fail to debug build failures for workspaces, the shell command
no longer sees the workspaces files to debug.
As the failed sysroot represents a very particular build failure, it
is incorrect to attempt to remount a workspace again after a failed
build, as the workspace files may have changed since the build.
Instead, in the case of a build failure on a workspaced element, we
copy the files from the workspace in place (while automatically preserving
the mtimes and everything, as utils.safe_copy() does).
When we implement failed build artifacts, this case will have to be
handled in a very similar way, too.
This fixes issue #346
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions