testrun.sh: Improve --help message

The testrun.sh --help message was missing the "container" option.
Besides just adding the missing option I decide to rewrite it in the
same layout as other tools.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Lucas A. M. Magalhaes 2021-05-25 10:14:19 +05:30 committed by Siddhesh Poyarekar
parent 7de36744ee
commit 709e3709a0

View File

@ -144,8 +144,13 @@ builddir=`dirname "$$0"`
GCONV_PATH="$${builddir}/iconvdata"
usage () {
echo "usage: $$0 [--tool=strace] PROGRAM [ARGUMENTS...]" 2>&1
echo " $$0 --tool=valgrind PROGRAM [ARGUMENTS...]" 2>&1
cat << EOF
Usage: $$0 [OPTIONS] <program> [ARGUMENTS...]
--tool=TOOL Run with the specified TOOL. It can be strace, valgrind or
container. The container will run within support/test-container.
EOF
exit 1
}