Skip to content

Commits on Source 3

  • Jonathan Maw's avatar
    element.py: Always clean up the rootdir · 446f6c64
    Jonathan Maw authored
    We shouldn't need it to persist now that we cache failed build dirs.
    
    This change breaks the test
    `tests/integration/shell.py::test_sysroot_workspace_visible`.
    I can no longer see a use-case for this test.
    AIUI, it tested that the failed build sysroot stored in the builddir has
    the workspace's files in, despite the workspace being unmounted.
    I believe this behaviour is made redundant by cached buildtrees.
    
    This fixes part of #539
    446f6c64
  • Jonathan Maw's avatar
    Element: Use cached buildtree in build shells and failure shells · bcd8c963
    Jonathan Maw authored
    This includes changes in app.py:
    * Interactive failure shell no longer uses the failed build sysroot,
      defaulting to the cached build tree.
    * Always allow producing a failure shell.
    
    Changes in element.py are:
    * Errors caused by building don't store the failed build sysroot.
    * When staging sources, will stage the element's cached build tree if it
      exists.
    
    This fixes part of #539
    bcd8c963
  • Jonathan Maw's avatar
    tests: Add test that cached build trees are staged in build shells · 2e8bf330
    Jonathan Maw authored
    This is related to #539
    2e8bf330
Loading