proper error ?

This commit is contained in:
Thibault bui Koechlin 2020-06-09 09:59:48 +02:00
parent ae0dffcf10
commit 5b07f4006e

View file

@ -30,4 +30,4 @@ jobs:
run: pwd && cd hub-tests && bash -x ./prep_tests.sh && cd ..
- name: Run the tests
working-directory: crowdsec-pull/tests/
run: for i in `find ./tests -mindepth 1 -maxdepth 1 -type d` ; do echo "Testing $i" ; ./main $i || (echo "failed test for ${i}" ; diff ${i}"/results.yaml" ${i}"/results.yaml.fail") ; done
run: for i in `find ./tests -mindepth 1 -maxdepth 1 -type d` ; do echo "Testing $i" ; ./main $i || (echo "echo "::error file=${i}::Failed test for ${i}" ; diff ${i}"/results.yaml" ${i}"/results.yaml.fail") ; done