Skip to content

Commit

Permalink
fix(docker/tester): return tests exit code
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
leogr committed Oct 12, 2020
1 parent 54bfdf8 commit 40257c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/tester/root/usr/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ case "$CMD" in
echo "Running regression tests ..."
cd "$SOURCE_DIR/falco/test"
SKIP_PACKAGES_TESTS=$SKIP_PACKAGES_TESTS ./run_regression_tests.sh -d "$BUILD_DIR/$BUILD_TYPE"
TESTS_EXIT_CODE=$?

# clean docker images
if [ "$SKIP_PACKAGES_TESTS" = false ] ; then
clean_image "deb"
clean_image "rpm"
clean_image "tar.gz"
fi
exit $TESTS_EXIT_CODE
;;
"bash")
CMD=/bin/bash
Expand Down

0 comments on commit 40257c1

Please sign in to comment.