[Pkg-bazaar-commits] ./bzr/unstable r335: - add new failing test for command parsing
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 07:51:52 UTC 2009
------------------------------------------------------------
revno: 335
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-05-03 18:04:38 +1000
message:
- add new failing test for command parsing
modified:
testbzr
-------------- next part --------------
=== modified file 'testbzr'
--- a/testbzr 2005-04-28 09:55:40 +0000
+++ b/testbzr 2005-05-03 08:04:38 +0000
@@ -26,6 +26,10 @@
import sys, os, traceback
+TESTDIR = "testbzr.tmp"
+
+LOGFILENAME = 'testbzr.log'
+
try:
import shutil
from subprocess import call, Popen, PIPE
@@ -104,14 +108,12 @@
logfile.write(' at %s:%d\n' % stack[:2])
-TESTDIR = "testbzr.tmp"
-
# prepare an empty scratch directory
if os.path.exists(TESTDIR):
shutil.rmtree(TESTDIR)
-logfile = open('testbzr.log', 'wt', buffering=1)
+logfile = open(LOGFILENAME, 'wt', buffering=1)
try:
@@ -120,6 +122,7 @@
progress("introductory commands")
runcmd("bzr version")
+ runcmd("bzr --version")
runcmd("bzr help")
runcmd("bzr --help")
@@ -175,7 +178,7 @@
except Exception, e:
sys.stderr.write('*' * 50 + '\n'
+ 'testbzr: tests failed\n'
- + 'see testbzr.log for more information\n'
+ + 'see ' + LOGFILENAME + ' for more information\n'
+ '*' * 50 + '\n')
logfile.write('tests failed!\n')
traceback.print_exc(None, logfile)
More information about the Pkg-bazaar-commits
mailing list