Keep running scripts when one fails (#895)

Fixes #894
This commit is contained in:
Marco Castelluccio 2020-02-18 09:41:45 +01:00 коммит произвёл GitHub
Родитель eb9ec4963d
Коммит 7ce0eabf0a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -1,5 +1,4 @@
#!/bin/bash
set -e
PATH_SCRIPT="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$PATH_SCRIPT"
@ -13,3 +12,10 @@ if test ! -f auto_nag/scripts/configs/people.json; then
echo "Cannot run without the people.json file in auto_nag/scripts/configs/"
exit -1
fi
errored=false
ErrorHandler () {
errored=true
}
trap ErrorHandler ERR

Просмотреть файл

@ -1,5 +1,4 @@
#!/bin/bash
set -e
export PYTHONPATH=.
@ -117,3 +116,7 @@ python -m auto_nag.scripts.stepstoreproduce
python -m auto_nag.scripts.spambug
deactivate
if [ "$errored" = true ] ; then
exit -1
fi

Просмотреть файл

@ -1,5 +1,4 @@
#!/bin/bash
set -e
export PYTHONPATH=.
@ -89,3 +88,7 @@ python -m auto_nag.scripts.prod_comp_changed_with_priority
python -m auto_nag.log --send
deactivate
if [ "$errored" = true ] ; then
exit -1
fi