<commit_before>#!/bin/bash

set -e

readonly BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "${BASE}/helpers.sh"

if ! is_travis_build; then
  print_error_and_exit "This test needs to run on Travis."
fi

if is_empty "${SMALLTALK_CI_HOME}" || is_empty "${SMALLTALK_CI_BUILD}"; then
  print_error_and_exit "SMALLTALK_CI_HOME or SMALLTALK_CI_BUILD not set."
fi

if is_dir "${SMALLTALK_CI_BUILD}"; then
  print_info "Removing old build folder at ${SMALLTALK_CI_BUILD}"
  rm -rf "${SMALLTALK_CI_BUILD}"
fi

print_info "Starting second pass to check that smalltalkCI can fail..."
exit_status=0
$SMALLTALK_CI_HOME/run.sh --debug $SMALLTALK_CI_HOME/.smalltalk_fail.ston || exit_status=$?

if [[ "${exit_status}" -eq 0 ]]; then
  print_error_and_exit "smalltalkCI passed unexpectedly."
fi<commit_msg>Enable verbose output for debugging purposes<commit_after>#!/bin/bash

set -e

readonly BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "${BASE}/helpers.sh"

if ! is_travis_build; then
  print_error_and_exit "This test needs to run on Travis."
fi

if is_empty "${SMALLTALK_CI_HOME}" || is_empty "${SMALLTALK_CI_BUILD}"; then
  print_error_and_exit "SMALLTALK_CI_HOME or SMALLTALK_CI_BUILD not set."
fi

if is_dir "${SMALLTALK_CI_BUILD}"; then
  print_info "Removing old build folder at ${SMALLTALK_CI_BUILD}"
  rm -rf "${SMALLTALK_CI_BUILD}"
fi

print_info "Starting second pass to check that smalltalkCI can fail..."
exit_status=0
$SMALLTALK_CI_HOME/run.sh --verbose --debug $SMALLTALK_CI_HOME/.smalltalk_fail.ston || exit_status=$?

if [[ "${exit_status}" -eq 0 ]]; then
  print_error_and_exit "smalltalkCI passed unexpectedly."
fi
{'fraction_non_alphanumeric': 0.13413897280966766, 'fraction_numerical': 0.0036253776435045317, 'mean_word_length': 5.650602409638554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7086510', 'n_tokens_mistral': 646, 'n_tokens_neox': 607, 'n_words': 155}