Skip to content
Snippets Groups Projects
Commit d5d9879b authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'react-on-pipe-in-output' into 'master'

move codeblock to check pipes

See merge request !13
parents 0f35e414 2c443984
No related branches found
No related tags found
1 merge request!13move codeblock to check pipes
...@@ -352,6 +352,13 @@ function processCheck(){ ...@@ -352,6 +352,13 @@ function processCheck(){
_elog "${_logPrefix} $( ls -ld ${dir_data} $_outfile )" _elog "${_logPrefix} $( ls -ld ${dir_data} $_outfile )"
exit 1 exit 1
fi fi
typeset -i local iTsEnd=`date +%s`
# outPerfdata=`grep '|' $_outfile | cut -f 2 -d '|'`
outPerfdata=`grep '|' $_outfile | rev | cut -f 1 -d '|' | rev`
_echo
_echo -------- check output:
_echo $( cat "$_outfile" )
iPipes=$( sed 's#[^|]##g' "$_outfile" | grep "." | wc -L ) iPipes=$( sed 's#[^|]##g' "$_outfile" | grep "." | wc -L )
_echo "Pipe chars: $iPipes" _echo "Pipe chars: $iPipes"
if [[ $iPipes -gt 1 ]]; then if [[ $iPipes -gt 1 ]]; then
...@@ -359,12 +366,6 @@ function processCheck(){ ...@@ -359,12 +366,6 @@ function processCheck(){
exit 1 exit 1
fi fi
typeset -i local iTsEnd=`date +%s`
# outPerfdata=`grep '|' $_outfile | cut -f 2 -d '|'`
outPerfdata=`grep '|' $_outfile | rev | cut -f 1 -d '|' | rev`
_echo
_echo -------- check output:
_echo $( cat "$_outfile" )
_echo _echo
# echo -------- extracted performance data: # echo -------- extracted performance data:
# echo $outPerfdata # echo $outPerfdata
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment