tmt-check does not use return code of lint - will always succeed
I was adding lint tasks to another project including tmt lint. I ran tmt lint on this project and there warnings, and return code of 1.
I understand that this is passed back to gitlab pipeline, and the failed task tmt-check, will be flagged as failed. I think the script lines should be swapped around. However this will mean the pipeline will fail until issues are fixed, or allow failure as below.
tmt-check:
image: quay.io/testing-farm/tmt:latest
stage: lint
before_script:
- tmt --version
script:
- tmt plans ls
- tmt lint .
allow_failure: true