ci: Travis: no need for asan_symbolize (#10627)
Having llvm-symbolizer in the $PATH is enough. - check_logs: remove log after displaying it Otherwise it would be displayed/symbolized again and again. E.g. in https://api.travis-ci.org/v3/job/564477704/log.txt.
This commit is contained in:
parent
05fa1cb3f4
commit
48884ac3b3
|
@ -16,13 +16,16 @@ echo 'Python info:'
|
|||
pip3 --version
|
||||
pip2 --version
|
||||
pip --version
|
||||
|
||||
pyenv --version
|
||||
pyenv versions
|
||||
) 2>&1 | sed 's/^/ /' || true
|
||||
|
||||
# Use pyenv, but not for OSX on Travis, where it only has the "system" version.
|
||||
if [[ "${TRAVIS_OS_NAME}" != osx ]] && command -v pyenv; then
|
||||
echo 'Setting Python versions via pyenv'
|
||||
# Prefer python2 as python for /usr/bin/asan_symbolize-4.0.
|
||||
|
||||
# Prefer Python 2 over 3 (more conservative).
|
||||
pyenv global 2.7.15:3.7
|
||||
|
||||
echo 'Updated Python info:'
|
||||
|
|
|
@ -69,6 +69,7 @@ check_logs() {
|
|||
for log in $(find "${1}" -type f -name "${2}" -size +0); do
|
||||
cat "${log}"
|
||||
err=1
|
||||
rm "${log}"
|
||||
done
|
||||
if test -n "${err}" ; then
|
||||
fail 'logs' E 'Runtime errors detected.'
|
||||
|
@ -81,7 +82,7 @@ valgrind_check() {
|
|||
|
||||
asan_check() {
|
||||
if test "${CLANG_SANITIZER}" = "ASAN_UBSAN" ; then
|
||||
check_logs "${1}" "*san.*" | asan_symbolize
|
||||
check_logs "${1}" "*san.*"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue