mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
Properly catch return codes since -x is no longer used
This commit is contained in:
parent
d3faacf9b0
commit
c91fca7bb4
@ -37,19 +37,21 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If there are python errors or warnings, print them and fail.
|
# If there are python errors or warnings, print them and fail.
|
||||||
$PYFLAKES $PY_FILES
|
|
||||||
$PEP8 --ignore=E123,E501 $PY_FILES
|
if ! $PYFLAKES $PY_FILES; then
|
||||||
|
err "pyflakes tests failed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $PEP8 --ignore=E123,E501 $PY_FILES; then
|
||||||
|
err "pep8 tests failed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
# check the syntax of included shell scripts with bash -n
|
||||||
# check the syntax of included shell scripts
|
|
||||||
|
|
||||||
# use bash to check that the syntax is correct
|
|
||||||
for f in $SH_FILES; do
|
for f in $SH_FILES; do
|
||||||
if bash -n $f; then
|
if ! bash -n $f; then
|
||||||
: # success! do nothing
|
err "bash tests failed!"
|
||||||
else
|
|
||||||
err "FAILED!"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user