Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
adding a real test counter and upping a timeout on a test
Browse files Browse the repository at this point in the history
  • Loading branch information
BuzzTroll committed Nov 7, 2010
1 parent ce10d3a commit e4473ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions tests/bt-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ do
error_cnt=`expr $error_cnt + 1`
error_ts="$error_ts $t"
else
cnt=`expr $cnt + 1`
x=`grep "Ran " $t.log | grep " tests in " | sed "s/Ran //" | sed "s/tests in.*//"`
if [ "X$x" == "X" ]; then
cnt=`expr $cnt + 1`
else
for n in $x
do
cnt=`expr $cnt + $n`
done
fi
fi
done
echo "$cnt parent tests passed (many more subtests were run)"
echo "$cnt tests passed"
echo "$error_cnt parent tests failed"
echo " $error_ts"

Expand Down
4 changes: 2 additions & 2 deletions tests/cc-propsamename-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import filecmp

to=90
to=180

cc_home=os.environ['CLOUD_CLIENT_HOME']
logfile = sys.stdout
Expand All @@ -31,7 +31,7 @@

cmd = "%s/bin/cloud-client.sh --handle %s --save" % (cc_home, handle)
print cmd
(x, rc)=pexpect.run(cmd, withexitstatus=1)
(x, rc)=pexpect.run(cmd, withexitstatus=1, timeout=to, logfile=logfile)
print x
if rc != 0:
print "failed to save"
Expand Down

0 comments on commit e4473ea

Please sign in to comment.