Commit 288258f4 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3752 log counts of tests that pass or fail refs[t:3752]

git-svn-id: file:///svn/toku/tokudb@33763 c7de825b-a66e-492c-adef-691d508d4ae1
parent 052208fc
...@@ -274,7 +274,7 @@ function build() { ...@@ -274,7 +274,7 @@ function build() {
# put the trace into svn # put the trace into svn
if [ $docommit -ne 0 ] ; then if [ $docommit -ne 0 ] ; then
testresult="PASS" testresult="PASS"
if [ $nfail -ne 0 ] ; then testresult="FAIL"; fi if [ $nfail -ne 0 ] ; then testresult="FAIL=$nfail"; fi
local cf=`mktemp` local cf=`mktemp`
echo "$testresult tokudb-build $productname-$BDB $system $release $arch $nodename" >$cf echo "$testresult tokudb-build $productname-$BDB $system $release $arch $nodename" >$cf
......
...@@ -87,6 +87,7 @@ function runcmd() { ...@@ -87,6 +87,7 @@ function runcmd() {
if [ $fail -eq 0 ] ; then if [ $fail -eq 0 ] ; then
if [ $exitcode -eq 0 ] ; then if [ $exitcode -eq 0 ] ; then
result="PASS `mydate` $dir $cmd" result="PASS `mydate` $dir $cmd"
let npass=npass+1
else else
result="FAIL `mydate` $dir $cmd" result="FAIL `mydate` $dir $cmd"
let nfail=nfail+1 let nfail=nfail+1
...@@ -94,7 +95,6 @@ function runcmd() { ...@@ -94,7 +95,6 @@ function runcmd() {
else else
if [ $exitcode -eq 0 ] ; then if [ $exitcode -eq 0 ] ; then
result="XPASS `mydate` $dir $cmd" result="XPASS `mydate` $dir $cmd"
let nfail=nfail+1
else else
result="XFAIL `mydate` $dir $cmd" result="XFAIL `mydate` $dir $cmd"
fi fi
...@@ -172,6 +172,7 @@ function build() { ...@@ -172,6 +172,7 @@ function build() {
mkdir -p $productbuilddir mkdir -p $productbuilddir
let nfail=0 let nfail=0
let npass=0
# checkout into $productbuilddir # checkout into $productbuilddir
runcmd 0 $productbuilddir retry svn checkout -q -r $revision $svnserver/$checkout . >>$tracefile 2>&1 runcmd 0 $productbuilddir retry svn checkout -q -r $revision $svnserver/$checkout . >>$tracefile 2>&1
...@@ -266,8 +267,11 @@ function build() { ...@@ -266,8 +267,11 @@ function build() {
# put the trace into svn # put the trace into svn
if [ $docommit -ne 0 ] ; then if [ $docommit -ne 0 ] ; then
testresult="PASS" if [ $nfail = 0 ] ; then
if [ $nfail -ne 0 ] ; then testresult="FAIL"; fi testresult="PASS=$npass"
else
testresult="FAIL=$nfail PASS=$npass"
fi
local cf=`mktemp` local cf=`mktemp`
echo "$testresult tokudb-build $productname $CC $GCCVERSION $system $release $arch $nodename" >$cf echo "$testresult tokudb-build $productname $CC $GCCVERSION $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