#!/usr/bin/env bash
# tests/dc-dc-prefixes-import/run-tests.sh -- harness for
# netbox/dc-dc-prefixes-import.py (tooling gap register #3).
#
# The actual test logic is Python (test_logic.py), since the target script
# is Python -- this wrapper just invokes it and relays the exit code,
# matching this repo's run-tests-all.sh discovery convention (glob for
# tests/*/run-tests.sh) without forcing a bash reimplementation of the
# assertions.
set -uo pipefail
SD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
command -v python3 >/dev/null 2>&1 || { echo "FAIL: python3 required"; exit 1; }
python3 "$SD/test_logic.py"
