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:
parent
b39b785fdf
commit
0436d95f2e
|
@ -10,7 +10,12 @@ DOCKER_EXTRA="$5"
|
||||||
|
|
||||||
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
|
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
|
||||||
if [ -z "$OSMO_INTERACT_VTY" ]; then
|
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
|
fi
|
||||||
|
|
||||||
docker_images_require \
|
docker_images_require \
|
||||||
|
|
Loading…
Reference in New Issue