]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTEST: script: Process script arguments before everything else
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Dec 2018 21:41:20 +0000 (22:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 20 Dec 2018 09:33:18 +0000 (10:33 +0100)
commit8d67cf8187505049c044797aa2b854bca4459bf9
treeaa2ea70a20af71e66fb04b8fca8227df3c27c75c
parentfdafd9a3f805f5a02541f74be2fa364600d96c91
REGTEST: script: Process script arguments before everything else

The help message is now in the function _help(). It exits the script with the
status 0 to not run regtests when the help is displayed. So it is also handy to
process script arguments before anything else. This avoids to start printing
messages related to regtests execution when it is not appropriate. Another
change, when it detects an invalid argument, the script exits with an error.
scripts/run-regtests.sh