regen_doc: check OSMO_INTERACT_VTY, fix default

Change default from osmo-interact-vty.py to osmo_interact_vty.py, which
is the name of the script in osmo-python-tests.git.

Check if that script is in PATH before building and running the docker
container.

Change-Id: I763c7379b710160e0155f1fde091137754141335
This commit is contained in:
Oliver Smith 2019-06-27 09:57:01 +02:00
parent b39b785fdf
commit 0436d95f2e
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,12 @@ DOCKER_EXTRA="$5"
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
if [ -z "$OSMO_INTERACT_VTY" ]; then
OSMO_INTERACT_VTY="osmo-interact-vty.py"
OSMO_INTERACT_VTY="osmo_interact_vty.py"
fi
if ! command -v "$OSMO_INTERACT_VTY" 2>&1; then
set +x
echo "ERROR: $OSMO_INTERACT_VTY not found. Are osmo-python-tests in PATH?"
exit 1
fi
docker_images_require \