mirror of
https://github.com/azaion/detections.git
synced 2026-06-21 10:21:08 +00:00
Fixed state before e2e tests
This commit is contained in:
@@ -20,6 +20,18 @@ esac
|
||||
|
||||
COMPOSE="docker compose -f docker-compose.test.yml --profile $PROFILE"
|
||||
LOG_TAIL="${E2E_LOG_TAIL:-100}"
|
||||
|
||||
if [[ -d fixtures/classes.json ]]; then
|
||||
rm -rf fixtures/classes.json
|
||||
fi
|
||||
if [[ ! -f fixtures/classes.json && -f ../classes.json ]]; then
|
||||
cp ../classes.json fixtures/classes.json
|
||||
fi
|
||||
if [[ ! -f fixtures/classes.json ]]; then
|
||||
echo "ERROR: e2e/fixtures/classes.json is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RUNNER_ENV_ARGS=(-e E2E_PROFILE="$PROFILE")
|
||||
if [[ "$PROFILE" == "jetson" ]]; then
|
||||
RUNNER_ENV_ARGS+=(
|
||||
@@ -45,6 +57,7 @@ usage() {
|
||||
|
||||
[[ $# -lt 1 ]] && usage
|
||||
|
||||
$COMPOSE down -v --remove-orphans || true
|
||||
$COMPOSE up -d --build "$DETECTIONS_SERVICE"
|
||||
echo "--- Waiting for detections service to become healthy..."
|
||||
for i in $(seq 1 60); do
|
||||
|
||||
Reference in New Issue
Block a user