Revision be64da4f85ccf176f20f869a515b98778e40a0b0 authored by Vincent Botbol on 11 June 2019, 10:04:55 UTC, committed by Vincent Botbol on 11 June 2019, 10:04:55 UTC
p2p welcome: Don't stop the worker on accept error See merge request tezos/tezos!1118
update_integration_test.sh
#! /bin/sh
set -e
script_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
src_dir="$(dirname "$script_dir")"
tmp=$(mktemp)
sed -z 's/^\(.*##BEGIN_INTEGRATION_PYTHON##\n\).*\(\n##END_INTEGRATION_PYTHON##.*\)$/\1/' "$src_dir/.gitlab-ci.yml" > $tmp
cpt=0
for test in tests_python/tests/test_*.py; do
num=$(printf "%02d" $cpt)
cpt=$((cpt+1))
testname=${test##tests_python/tests/test_}
testname=${testname%%.py}
cat >> $tmp <<EOF
integration:$num:$testname:
<<: *integration_definition
script:
- pytest $test
EOF
done
sed -z 's/^\(.*##BEGIN_INTEGRATION_PYTHON##\n\).*\(\n##END_INTEGRATION_PYTHON##.*\)$/\2/' "$src_dir/.gitlab-ci.yml" >> $tmp
mv $tmp "$src_dir/.gitlab-ci.yml"
Computing file changes ...