summaryrefslogtreecommitdiff
path: root/tests/topotests/docker
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-11-05 17:44:18 +0100
committerChristian Franke <chris@opensourcerouting.org>2018-11-29 16:51:27 +0100
commit9b5470a84351b0a0bd5db441240c362737210ac9 (patch)
treeac1f00719e320c6f1bdf4dc452da4f35869e6b83 /tests/topotests/docker
parent7996f1975dc42854b9a3e3df0ea18d21b5d2bac0 (diff)
docker: Improve README and frr-topotests usage
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/docker')
-rw-r--r--tests/topotests/docker/README.md4
-rwxr-xr-xtests/topotests/docker/frr-topotests.sh8
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/topotests/docker/README.md b/tests/topotests/docker/README.md
index 25b18da7dc..918594e6a3 100644
--- a/tests/topotests/docker/README.md
+++ b/tests/topotests/docker/README.md
@@ -30,8 +30,8 @@ of the image. If you need to force a complete recompile, you can set `TOPOTEST_C
TOPOTEST_CLEAN=1 frr-topotests
```
-By default, `frr-topotests` will execute pytest without any arguments. If you append an
-arguments with the first one starting with `/` or `./`, they will replace the call to
+By default, `frr-topotests` will build frr and run pytest. If you append
+arguments and the first one starts with `/` or `./`, they will replace the call to
pytest. If the appended arguments do not match this patttern, they will be provided to
pytest as arguments.
diff --git a/tests/topotests/docker/frr-topotests.sh b/tests/topotests/docker/frr-topotests.sh
index 90f1668451..435649c32f 100755
--- a/tests/topotests/docker/frr-topotests.sh
+++ b/tests/topotests/docker/frr-topotests.sh
@@ -32,7 +32,11 @@ if [[ "$1" = "-h" ]] || [[ "$1" = "--help" ]]; then
Usage: $0 [args...]
- Its behavior can be modified by the following environment variables:
+ If any arguments are provided and the first argument starts with / or ./
+ the arguments are interpreted as command and will be executed instead
+ of pytest.
+
+ Behavior can be further modified by the following environment variables:
TOPOTEST_AUTOLOAD If set to 1, the script will try to load necessary
kernel modules without asking for confirmation first.
@@ -66,8 +70,6 @@ if [[ "$1" = "-h" ]] || [[ "$1" = "--help" ]]; then
TOPOTEST_VERBOSE Show detailed build output.
Enabled by default, set to 0 to disable.
- To get information about the commands available inside of the container,
- run \`$0 help\`.
EOF
exit 1
fi