<commit_before>#!/bin/bash

set -e -u -x

SCRIPT_PATH="$(cd "$(dirname $0)" && pwd)"

cd ${SCRIPT_PATH}/..

SERIAL_NODES="${SERIAL_NODES:-1}"

declare -a serial_packages=(
  "src/code.cloudfoundry.org/policy-server/integration/timeouts"
  "src/code.cloudfoundry.org/policy-server/integration"
  "src/code.cloudfoundry.org/policy-server/store/migrations"
  "src/code.cloudfoundry.org/policy-server/store"
  "src/example-apps/tick"
)

# smoke/perf/acceptance/scaling tests should be skipped
declare -a ignored_packages=(
  "src/code.cloudfoundry.org/test"
)

for pkg in ${exclude_packages:-""}; do
  ignored_packages+=("${pkg}")
done

function loadIFB {
  set +e
    depmod $(uname -r)
    modprobe ifb
  set -e
}

function bootDB {<commit_msg>ci: fix test script for json exclude_packages input<commit_after>#!/bin/bash

set -e -u -x

SCRIPT_PATH="$(cd "$(dirname $0)" && pwd)"

cd ${SCRIPT_PATH}/..

SERIAL_NODES="${SERIAL_NODES:-1}"

declare -a serial_packages=(
  "src/code.cloudfoundry.org/policy-server/integration/timeouts"
  "src/code.cloudfoundry.org/policy-server/integration"
  "src/code.cloudfoundry.org/policy-server/store/migrations"
  "src/code.cloudfoundry.org/policy-server/store"
  "src/example-apps/tick"
)

# smoke/perf/acceptance/scaling tests should be skipped
declare -a ignored_packages=(
  "src/code.cloudfoundry.org/test"
)

for pkg in $(echo "${exclude_packages:-""}" | jq -r .[]); do
  ignored_packages+=("${pkg}")
done

function loadIFB {
  set +e
    depmod $(uname -r)
    modprobe ifb
  set -e
}

function bootDB {
{'fraction_non_alphanumeric': 0.163860103626943, 'fraction_numerical': 0.0025906735751295338, 'mean_word_length': 4.237288135593221, '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': '570180', 'n_tokens_mistral': 599, 'n_tokens_neox': 581, 'n_words': 108}