[pypy-svn] r16944 - pypy/release/0.7.x/pypy/tool/pytest
ale at codespeak.net
ale at codespeak.net
Sun Aug 28 11:08:12 CEST 2005
Author: ale
Date: Sun Aug 28 11:08:11 2005
New Revision: 16944
Modified:
pypy/release/0.7.x/pypy/tool/pytest/genreportdata.py
Log:
Make it possible to run genreportdata without svn access
Modified: pypy/release/0.7.x/pypy/tool/pytest/genreportdata.py
==============================================================================
--- pypy/release/0.7.x/pypy/tool/pytest/genreportdata.py (original)
+++ pypy/release/0.7.x/pypy/tool/pytest/genreportdata.py Sun Aug 28 11:08:11 2005
@@ -1,5 +1,6 @@
import autopath
import py
+import sys
mydir = py.magic.autopath().dirpath().realpath()
from pypy.tool.pytest import htmlreport
from pypy.tool.pytest import confpath
@@ -7,11 +8,14 @@
if __name__ == '__main__':
testresultdir = confpath.testresultdir
assert testresultdir.check(dir=1)
-
- resultwc = py.path.svnwc(testresultdir)
-
- print "updating", resultwc
- resultwc.update()
+ try:
+ resultwc = py.path.svnwc(testresultdir)
+ print "updating", resultwc
+ resultwc.update()
+ except KeyboardInterrupt, RuntimeError:
+ raise
+ except Exception,e: #py.process.ExecutionFailed,e:
+ print >> sys.stderr, "Warning: ",e #Subversion update failed"
print "traversing", mydir
rep = htmlreport.HtmlReport()
More information about the Pypy-commit
mailing list