diff options
| author | Christopher Faulet <cfaulet@haproxy.com> | 2018-12-19 10:22:01 +0100 |
|---|---|---|
| committer | Christopher Faulet <cfaulet@haproxy.com> | 2018-12-20 10:33:18 +0100 |
| commit | 2a7cf922c17eada097c59274caa05c8a284b5db6 (patch) | |
| tree | aba41a95a3ef021983134f8c45cbce33f9a35498 /scripts | |
| parent | 8d0fdf5ef2caeb88f410f0eec32503ab8365cfba (diff) | |
| download | haproxy-2a7cf922c17eada097c59274caa05c8a284b5db6.tar.gz | |
REGTEST: script: Add the option --debug to show logs on standard ouput
It implies the option --v. It is handy when you run the same test during a debug
session.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/run-regtests.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index 43ba095bd..d391416a0 100755 --- a/scripts/run-regtests.sh +++ b/scripts/run-regtests.sh @@ -19,6 +19,9 @@ _help() --v, to run verbose run-regtests.sh --v, disables the default varnishtest 'quiet' parameter + --debug to show test logs on standard ouput (implies --v) + run-regtests.sh --debug + --varnishtestparams <ARGS>, passes custom ARGS to varnishtest run-regtests.sh --varnishtestparams "-n 10" @@ -252,6 +255,10 @@ _process() { --v) verbose="" ;; + --debug) + verbose="" + debug="-v" + ;; --LEVEL) LEVEL="$2" shift @@ -287,6 +294,7 @@ REGTESTS="" jobcount="" verbose="-q" +debug="" testlist="" _process "$@"; @@ -404,7 +412,7 @@ if [ -n "$testlist" ]; then if [ -n "$jobcount" ]; then jobcount="-j $jobcount" fi - cmd="$VARNISHTEST_PROGRAM -l -k -t 10 $verbose $jobcount $varnishtestparams $testlist" + cmd="$VARNISHTEST_PROGRAM -l -k -t 10 $verbose $debug $jobcount $varnishtestparams $testlist" eval $cmd _vtresult=$? else |
