build: make our integration tests report clear steps for circleCI UI

inspection via collect test data [0]

[0] https://circleci.com/docs/2.0/collect-test-data/

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana 2020-11-05 14:14:59 +01:00 committed by poiana
parent ee5b55c02e
commit aaf6816821
2 changed files with 8 additions and 1 deletions

View File

@ -282,6 +282,8 @@ jobs:
- run:
name: Execute integration tests
command: /usr/bin/entrypoint test
- store_test_results:
path: /build/integration-tests-xunit
"tests/integration-static":
docker:
- image: falcosecurity/falco-tester:latest
@ -297,6 +299,8 @@ jobs:
- run:
name: Execute integration tests
command: /usr/bin/entrypoint test
- store_test_results:
path: /build-static/integration-tests-xunit
"tests/driver-loader/integration":
machine:
image: ubuntu-1604:202004-01

View File

@ -104,8 +104,11 @@ function run_tests() {
suites+=($SCRIPTDIR/falco_tests_package.yaml)
fi
mkdir -p ${OPT_BUILD_DIR}/integration-tests-xunit
for mult in "${suites[@]}"; do
CMD="avocado run --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
XUNITFILENAME="${OPT_BUILD_DIR}/$(basename "${mult}").xml"
CMD="avocado run --xunit ${XUNITFILENAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
echo "Running $CMD"
BUILD_DIR=${OPT_BUILD_DIR} $CMD
RC=$?