mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 23:57:29 +00:00
build: fix build directory for xunit tests
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
aaf6816821
commit
f5c1e7c165
@ -283,7 +283,7 @@ jobs:
|
|||||||
name: Execute integration tests
|
name: Execute integration tests
|
||||||
command: /usr/bin/entrypoint test
|
command: /usr/bin/entrypoint test
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: /build/integration-tests-xunit
|
path: /build/release/integration-tests-xunit
|
||||||
"tests/integration-static":
|
"tests/integration-static":
|
||||||
docker:
|
docker:
|
||||||
- image: falcosecurity/falco-tester:latest
|
- image: falcosecurity/falco-tester:latest
|
||||||
@ -300,7 +300,7 @@ jobs:
|
|||||||
name: Execute integration tests
|
name: Execute integration tests
|
||||||
command: /usr/bin/entrypoint test
|
command: /usr/bin/entrypoint test
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: /build-static/integration-tests-xunit
|
path: /build-static/release/integration-tests-xunit
|
||||||
"tests/driver-loader/integration":
|
"tests/driver-loader/integration":
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-1604:202004-01
|
image: ubuntu-1604:202004-01
|
||||||
|
@ -104,11 +104,12 @@ function run_tests() {
|
|||||||
suites+=($SCRIPTDIR/falco_tests_package.yaml)
|
suites+=($SCRIPTDIR/falco_tests_package.yaml)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ${OPT_BUILD_DIR}/integration-tests-xunit
|
XUNIT_DIR="${OPT_BUILD_DIR}/integration-tests-xunit"
|
||||||
|
mkdir -p "${XUNIT_DIR}"
|
||||||
|
|
||||||
for mult in "${suites[@]}"; do
|
for mult in "${suites[@]}"; do
|
||||||
XUNITFILENAME="${OPT_BUILD_DIR}/$(basename "${mult}").xml"
|
XUNIT_FILE_NAME="${XUNIT_DIR}/$(basename "${mult}").xml"
|
||||||
CMD="avocado run --xunit ${XUNITFILENAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
|
CMD="avocado run --xunit ${XUNIT_FILE_NAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
|
||||||
echo "Running $CMD"
|
echo "Running $CMD"
|
||||||
BUILD_DIR=${OPT_BUILD_DIR} $CMD
|
BUILD_DIR=${OPT_BUILD_DIR} $CMD
|
||||||
RC=$?
|
RC=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user