Commit 46716004 authored by Guillaume Pasero's avatar Guillaume Pasero

PKG: fix selftester regex

parent 1d8b25ab
Pipeline #1784 failed with stages
in 49 minutes and 23 seconds
......@@ -193,7 +193,7 @@ goto :eof
:parse_cli_output
setlocal
set /a ret=1
findstr /n /r /c:"^This is the *.*(%app%) application, version " tmp.log > results.txt
findstr /n /r /c:"^This is the %app% application, version " tmp.log > results.txt
if %errorlevel%==1 (
set /a ret=0
echo "findstr failed 1st regex in parse_cli_output"
......
......@@ -114,7 +114,7 @@ for app in $OTB_APPS; do
else
CLI_OUTPUT=$("bin/otbcli_$app" -help 2>&1)
CLI_FILTER=$(echo "${CLI_OUTPUT}"| tr '\n' ' ' | grep -E "This is the*.*$app*.*application, version .* Parameters: .* Examples:.*")
CLI_FILTER=$(echo "${CLI_OUTPUT}"| tr '\n' ' ' | grep -E "This is the $app application, version .* Parameters: .* Examples:.*")
CLI_FILTER2=$(echo "$CLI_FILTER" | grep -v 'FATAL')
if [ -z "$CLI_FILTER2" ]; then
echo_and_report "ERROR: bin/otbcli_$app\n$CLI_OUTPUT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment