Commit 2f296746 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4084 fix pass fail counts for fractal tree tests refs[t:4084]

git-svn-id: file:///svn/toku/tokudb@39340 c7de825b-a66e-492c-adef-691d508d4ae1
parent d6cd2460
......@@ -78,19 +78,18 @@ function runcmd() {
if [[ $dir =~ "$HOME/svn.build/(.*)" ]] ; then
dir=${BASH_REMATCH[1]}
fi
result="$(mydate) $dir $cmd"
if [ $fail -eq 0 ] ; then
if [ $exitcode -eq 0 ] ; then
result="PASS $(mydate) $dir $cmd"
let npass=npass+1
result="PASS $result"
else
result="FAIL $(mydate) $dir $cmd"
let nfail=nfail+1
result="FAIL $result"
fi
else
if [ $exitcode -eq 0 ] ; then
result="XPASS $(mydate) $dir $cmd"
result="XPASS $result"
else
result="XFAIL $(mydate) $dir $cmd"
result="XFAIL $result"
fi
fi
fi
......@@ -168,9 +167,6 @@ function build() {
rm -rf $productbuilddir
mkdir -p $productbuilddir
let nfail=0
let npass=0
# checkout into $productbuilddir
runcmd 0 $productbuilddir retry svn checkout -q -r $revision $svnserver/$checkout . >>$tracefile 2>&1
......@@ -300,10 +296,10 @@ function build() {
# put the trace into svn
if [ $commit -ne 0 ] ; then
npass=$(egrep "^PASS " $tracefile | wc -l)
nfail=$(egrep "^FAIL " $tracefile | wc -l)
testresult="PASS=$npass"
if [ $nfail != 0 ] ; then
testresult="FAIL=$nfail $testresult"
fi
if [ $nfail != 0 ] ; then testresult="FAIL=$nfail $testresult"; fi
local cf=$(my_mktemp ftresult)
echo "$testresult $productname $ftcc-$GCCVERSION bdb-$BDBVERSION $system $release $arch $nodename" >$cf
......
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