[py-svn] r58112 - py/trunk/contrib/filelog

pedronis at codespeak.net pedronis at codespeak.net
Sat Sep 13 16:46:16 CEST 2008


Author: pedronis
Date: Sat Sep 13 16:46:15 2008
New Revision: 58112

Modified:
   py/trunk/contrib/filelog/session.py
Log:
helper to add the required option



Modified: py/trunk/contrib/filelog/session.py
==============================================================================
--- py/trunk/contrib/filelog/session.py	(original)
+++ py/trunk/contrib/filelog/session.py	Sat Sep 13 16:46:15 2008
@@ -1,6 +1,14 @@
+import py
 from py.__.test.session import Session
 from py.__.test import event
 
+def add_filelog_option():
+    py.test.config.addoptions("filelog session options "
+                              "(use --session=FileLogSession)",
+        py.test.config.Option('--filelog', action="store",
+                              default=None, dest="filelog",
+                              help="path for filelog session logging"))
+                              
 
 def generic_path(item):
     chain = item.listchain()



More information about the pytest-commit mailing list