diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-09 09:57:36 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-13 09:36:50 +0100 |
commit | 4b0b68cdff0326d2a9b3c59ad3df6f4c05218786 (patch) | |
tree | 2d1c90bb076d1a1e5a0f1dc8060f7c4378e663e3 /tests/integration/project | |
parent | 05d673ff2881e0f8a177622489ead9c9158d6032 (diff) | |
download | buildstream-4b0b68cdff0326d2a9b3c59ad3df6f4c05218786.tar.gz |
element.py: Don't reset a failed (but cached) workspaced Elementjennis/fix_failed_workspaces
A workspaced element can fail to build, if this happens, we
cache the result as a failure. This patch ensures that we
do not reset the cache data if a workspace has failed to build.
An integration test has also been added which ensures that we
are able to get the log of a failed workspace build.
Closes #1096
Diffstat (limited to 'tests/integration/project')
-rw-r--r-- | tests/integration/project/elements/autotools/amhello-failure.bst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/integration/project/elements/autotools/amhello-failure.bst b/tests/integration/project/elements/autotools/amhello-failure.bst new file mode 100644 index 000000000..771466b49 --- /dev/null +++ b/tests/integration/project/elements/autotools/amhello-failure.bst @@ -0,0 +1,15 @@ +kind: autotools +description: An element which is meant to fail + +config: + build-commands: + (>): + - this-will-fail + +depends: +- base.bst + +sources: +- kind: tar + url: project_dir:/files/amhello.tar.gz + ref: 9ba123fa4e660929e9a0aa99f0c487b7eee59c5e7594f3284d015640b90f5590 |