REGTEST: script: Evaluate the varnishtest command to allow quoted parameters
Instead of directly executing varnishtest command, we use a variable to build the command line and we execute it with the 'eval' builtin. This way it is possible to have quoted parameters. For instance: > ./scripts/run-regtests.sh --varnishtestparams "-Dmacro='some value' -n 10" And the variable 'varnishtestparams' is also move at the end of the command line, just before the list of test files. So it is possible to override all default varnish options set by the script.
This commit is contained in:
parent
8d67cf8187
commit
1ecf0ea70a
@ -369,7 +369,8 @@ if [ -n "$testlist" ]; then
|
|||||||
if [ -n "$jobcount" ]; then
|
if [ -n "$jobcount" ]; then
|
||||||
jobcount="-j $jobcount"
|
jobcount="-j $jobcount"
|
||||||
fi
|
fi
|
||||||
$VARNISHTEST_PROGRAM $varnishtestparams $verbose $jobcount -l -k -t 10 $testlist
|
cmd="$VARNISHTEST_PROGRAM -l -k -t 10 $verbose $jobcount $varnishtestparams $testlist"
|
||||||
|
eval $cmd
|
||||||
_vtresult=$?
|
_vtresult=$?
|
||||||
else
|
else
|
||||||
echo "No tests found that meet the required criteria"
|
echo "No tests found that meet the required criteria"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user