fix(tests): make run_regression_tests.sh work locally

Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
Luca Guerra
2022-05-25 10:49:36 +00:00
committed by poiana
parent 4097661ba8
commit 9d7153e119
3 changed files with 4 additions and 8 deletions

View File

@@ -17,13 +17,7 @@ This step assumes you already built Falco.
Note that the tests are intended to be run against a [release build](https://falco.org/docs/getting-started/source/#specify-the-build-type) of Falco, at the moment.
Also, it assumes you prepared [falco_traces](#falco_traces) (see the section below) and you already run the following command from the build directory:
```console
make test-trace-files
```
It prepares the fixtures (`json` and `scap` files) needed by the integration tests.
Also, it assumes you prepared [falco_traces](#falco_traces) (see the section below).
**Requirements**

View File

@@ -6,7 +6,7 @@ idna==2.9
pathtools==0.1.2
pbr==5.4.5
PyYAML==5.4
requests==2.23.0
requests==2.26.0
six==1.14.0
stevedore==1.32.0
urllib3==1.26.5

View File

@@ -118,7 +118,9 @@ function run_tests() {
XUNIT_FILE_NAME="${XUNIT_DIR}/$(basename "${mult}").xml"
CMD="avocado run --xunit ${XUNIT_FILE_NAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
echo "Running $CMD"
pushd $TRACE_DIR > /dev/null
BUILD_DIR=${OPT_BUILD_DIR} $CMD
popd > /dev/null
RC=$?
TEST_RC=$((TEST_RC+RC))
if [ $RC -ne 0 ]; then