diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-09-02 09:02:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-09-02 09:02:26 +0300 |
commit | 9b0d3fe877b8f0df38fd9b0f0245148474629540 (patch) | |
tree | 504fb60ee9dffeb80aba93e56fa7006a3c28d170 | |
parent | 40f225d8471d874b7a28c12df266c94506a49e34 (diff) | |
download | ambient-run-9b0d3fe877b8f0df38fd9b0f0245148474629540.tar.gz |
tests: add scenario for when build produces an unwanted artifact
Sponsored-by: author
-rw-r--r-- | ambient-run.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ambient-run.md b/ambient-run.md index d143acb..7d3ab68 100644 --- a/ambient-run.md +++ b/ambient-run.md @@ -257,6 +257,34 @@ image: image.qcow2 artifact: foo.tar ~~~ +### Fail build that tries to produce an unwanted artifact + +_Requirement:_ If an artifact output is not specified for the project, +fail a build that tries to make one. + +_Justification:_ If a build tries to create an artifact, but one isn't +wanted, the build should fail. + +_Stakeholder:_ Lars. + +~~~scenario +given an installed ambient-run +given file no-artifact-project.yaml +given file foo/README.md from foo-project.yaml +given image file image.qcow2 specified for test suite +when I run ambient-run build no-artifact-project.yaml --log foo.log +then file foo.log contains "EXIT CODE: 2" +~~~ + + +~~~{#no-artifact-project.yaml .file .yaml} +source: foo +shell: | + #!/bin/bash + tar -cf /dev/vdc . +image: image.qcow2 +~~~ + ### Build is given dependencies ### Cache is persistent between builds ### Build gets the resources is demands |