[pypy-svn] r11616 - pypy/dist/lib-python-2.3.4/test

arigo at codespeak.net arigo at codespeak.net
Fri Apr 29 12:55:12 CEST 2005


Author: arigo
Date: Fri Apr 29 12:55:12 2005
New Revision: 11616

Modified:
   pypy/dist/lib-python-2.3.4/test/conftest.py
Log:
Skip tests with an explanation message if the test result subdirectory was not 
checked out.


Modified: pypy/dist/lib-python-2.3.4/test/conftest.py
==============================================================================
--- pypy/dist/lib-python-2.3.4/test/conftest.py	(original)
+++ pypy/dist/lib-python-2.3.4/test/conftest.py	Fri Apr 29 12:55:12 2005
@@ -778,6 +778,11 @@
             username = 'unknown'
         userhost = '%s@%s' % (username, socket.gethostname())
 
+        if not mydir.join('result').check(dir=1):
+            py.test.skip("""'result' subdirectory not found.
+            To run tests in reporting mode (without -E), you first have to
+            check it out as follows into the current directory:
+            svn co http://codespeak.net/svn/pypy/testresult""")
         resultdir = mydir.join('result', userhost)
         resultdir.ensure(dir=1)
         resultfilename = resultdir.join(fspath.new(ext='.txt').basename)



More information about the Pypy-commit mailing list