[Buildroot] [PATCH 1/2] Makefile: .gitlab-ci.yml: fail when listing tests fail
Peter Korsgaard
peter at korsgaard.com
Sun Oct 21 21:33:30 UTC 2018
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be> writes:
> To update the .gitlab-ci.yml file, we run run-tests -l to list all the
> tests and post-process the output in a format suitable for
> .gitlab-ci.yml. However, in a pipeline, it is the last command that
> gives the return value. In addition, we have to redirect stderr of
> run-tests -l because nose2 prints the tests on stderr, not stdout. Thus,
> when run-tests -l fails, the update of .gitlab-ci.yml silently succeeds
> but no tests are included in the .gitlab-ci.yml.
> To fix this, set tho pipefail option. This is bash-specific, but our
s/tho/the/
Committed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list