* [PATCH v2] travis: Correct error checking when building boards
@ 2020-04-19 23:02 Simon Glass
2020-04-20 5:38 ` Michal Simek
2020-04-24 17:13 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Simon Glass @ 2020-04-19 23:02 UTC (permalink / raw)
To: u-boot
At present if buildman reports an error, the travis build still succeeds.
This is because the travis script does not stop when it sees errors; nor
does it automatically return the exit code. Also the current error
checking never triggers since 'ret' is not set.
Fix this by setting 'ret' correctly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Michal Simek <michal.simek@xilinx.com>
---
Changes in v2:
- Fix missing ret=0
.travis.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index b3253da13c..1dbc63cadf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -208,7 +208,8 @@ script:
#
# Build a selection of boards if TEST_PY_BD is empty
- if [[ "${BUILDMAN}" != "" ]]; then
- tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE};
+ ret=0
+ tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
if [[ $ret -ne 0 ]]; then
tools/buildman/buildman -seP ${BUILDMAN};
exit $ret;
--
2.26.1.301.g55bc3eb7cb9-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] travis: Correct error checking when building boards
2020-04-19 23:02 [PATCH v2] travis: Correct error checking when building boards Simon Glass
@ 2020-04-20 5:38 ` Michal Simek
2020-04-24 17:13 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Michal Simek @ 2020-04-20 5:38 UTC (permalink / raw)
To: u-boot
On 20. 04. 20 1:02, Simon Glass wrote:
> At present if buildman reports an error, the travis build still succeeds.
>
> This is because the travis script does not stop when it sees errors; nor
> does it automatically return the exit code. Also the current error
> checking never triggers since 'ret' is not set.
>
> Fix this by setting 'ret' correctly.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reported-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> Changes in v2:
> - Fix missing ret=0
>
> .travis.yml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index b3253da13c..1dbc63cadf 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -208,7 +208,8 @@ script:
> #
> # Build a selection of boards if TEST_PY_BD is empty
> - if [[ "${BUILDMAN}" != "" ]]; then
> - tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE};
> + ret=0
> + tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
> if [[ $ret -ne 0 ]]; then
> tools/buildman/buildman -seP ${BUILDMAN};
> exit $ret;
>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Thanks,
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] travis: Correct error checking when building boards
2020-04-19 23:02 [PATCH v2] travis: Correct error checking when building boards Simon Glass
2020-04-20 5:38 ` Michal Simek
@ 2020-04-24 17:13 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2020-04-24 17:13 UTC (permalink / raw)
To: u-boot
On Sun, Apr 19, 2020 at 05:02:32PM -0600, Simon Glass wrote:
> At present if buildman reports an error, the travis build still succeeds.
>
> This is because the travis script does not stop when it sees errors; nor
> does it automatically return the exit code. Also the current error
> checking never triggers since 'ret' is not set.
>
> Fix this by setting 'ret' correctly.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reported-by: Michal Simek <michal.simek@xilinx.com>
> Acked-by: Michal Simek <michal.simek@xilinx.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200424/22a044a2/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-24 17:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19 23:02 [PATCH v2] travis: Correct error checking when building boards Simon Glass
2020-04-20 5:38 ` Michal Simek
2020-04-24 17:13 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.