Home
last modified time | relevance | path

Searched hist:"0 c5145fc29cf2377fa364aaf848eaf89b886cc28" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/
H A D.travis.yml0c5145fc29cf2377fa364aaf848eaf89b886cc28 Wed Oct 26 17:05:32 UTC 2016 Stephen Warren <swarren@nvidia.com> travis-ci: use correct exit code on errors

The phrase "if [ $? -ne 0 ]; then exit $?; fi" doesn't work correctly;
by the time the "exit" statement runs, $? has already been over-written
by the result of the [ command. Fix this by explicitly storing $? and
then using that stored value in both the test and the error-case exit
statement.

This change also converts from textual comparison to integer comparison,
since the exit code is an integer and there's no need to convert it to
a string for comparison.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Heiko Schocher <hs@denx.de>