.travis.yml, scripts: Fix minor bugs in the test script.
1. setting environment variable cannot be in quote 2. "--race" testing for unit tests is supposed to be part of linux-amd64-unit-4-cpu-race config. 3. 'run' function in test script should log_error in case of failed command (wrong operator for ints comparison in bash).
This commit is contained in:
parent
ab4cc3caef
commit
0e5d81704f
@ -125,7 +125,7 @@ script:
|
|||||||
sudo HOST_TMP_DIR=/tmp TEST_OPTS="VERBOSE='1'" make docker-test-coverage
|
sudo HOST_TMP_DIR=/tmp TEST_OPTS="VERBOSE='1'" make docker-test-coverage
|
||||||
;;
|
;;
|
||||||
linux-amd64-fmt-unit-go-tip-2-cpu)
|
linux-amd64-fmt-unit-go-tip-2-cpu)
|
||||||
GOARCH=amd64 PASSES='fmt unit' 'CPU=2' ./test -p=2
|
GOARCH=amd64 PASSES='fmt unit' CPU='2' RACE='false' ./test -p=2
|
||||||
;;
|
;;
|
||||||
linux-386-unit-1-cpu)
|
linux-386-unit-1-cpu)
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
|
@ -72,7 +72,7 @@ function run {
|
|||||||
log_callout "% ${repro}"
|
log_callout "% ${repro}"
|
||||||
"${@}"
|
"${@}"
|
||||||
local error_code=$?
|
local error_code=$?
|
||||||
if [ ${error_code} != 0 ]; then
|
if [ ${error_code} -ne 0 ]; then
|
||||||
log_error -e "FAIL: (code:${error_code}):\n % ${repro}"
|
log_error -e "FAIL: (code:${error_code}):\n % ${repro}"
|
||||||
return ${error_code}
|
return ${error_code}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user