[svn r38217] Moved the -S option to a new conftest.py in the execnet dir to avoid nasty
option re-definition problems. --HG-- branch : trunk
This commit is contained in:
		
							parent
							
								
									0bd286ba94
								
							
						
					
					
						commit
						c1216c2346
					
				| 
						 | 
					@ -15,15 +15,4 @@ exitfirst = False
 | 
				
			||||||
fulltrace = False
 | 
					fulltrace = False
 | 
				
			||||||
showlocals = False
 | 
					showlocals = False
 | 
				
			||||||
nomagic = False
 | 
					nomagic = False
 | 
				
			||||||
 | 
					 | 
				
			||||||
import py
 | 
					 | 
				
			||||||
Option = py.test.config.Option
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
option = py.test.config.addoptions("execnet options",
 | 
					 | 
				
			||||||
        Option('-S', '',
 | 
					 | 
				
			||||||
               action="store", dest="sshtarget", default=None,
 | 
					 | 
				
			||||||
               help=("target to run tests requiring ssh, e.g. "
 | 
					 | 
				
			||||||
                     "user@codespeak.net")),
 | 
					 | 
				
			||||||
    )
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
dist_rsync_roots = ['.']
 | 
					dist_rsync_roots = ['.']
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,10 @@
 | 
				
			||||||
 | 
					import py
 | 
				
			||||||
 | 
					Option = py.test.config.Option
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					option = py.test.config.addoptions("execnet options",
 | 
				
			||||||
 | 
					        Option('-S', '',
 | 
				
			||||||
 | 
					               action="store", dest="sshtarget", default=None,
 | 
				
			||||||
 | 
					               help=("target to run tests requiring ssh, e.g. "
 | 
				
			||||||
 | 
					                     "user@codespeak.net")),
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@ from __future__ import generators
 | 
				
			||||||
import os, sys, time, signal
 | 
					import os, sys, time, signal
 | 
				
			||||||
import py
 | 
					import py
 | 
				
			||||||
from py.__.execnet import gateway
 | 
					from py.__.execnet import gateway
 | 
				
			||||||
from py.__.conftest import option 
 | 
					from py.__.execnet.conftest import option 
 | 
				
			||||||
mypath = py.magic.autopath()
 | 
					mypath = py.magic.autopath()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from StringIO import StringIO
 | 
					from StringIO import StringIO
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,15 +16,6 @@ from py.__.test.terminal.remote import RemoteTerminalSession
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Option = py.test.config.Option
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
option = py.test.config.addoptions("execnet options",
 | 
					 | 
				
			||||||
        Option('-S', '',
 | 
					 | 
				
			||||||
               action="store", dest="sshtarget", default=None,
 | 
					 | 
				
			||||||
               help=("target to run tests requiring ssh, e.g. "
 | 
					 | 
				
			||||||
                     "user@codespeak.net")),
 | 
					 | 
				
			||||||
    )
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
class MyRSync(py.execnet.RSync):
 | 
					class MyRSync(py.execnet.RSync):
 | 
				
			||||||
    def filter(self, path):
 | 
					    def filter(self, path):
 | 
				
			||||||
        if path.endswith('.pyc') or path.endswith('~'):
 | 
					        if path.endswith('.pyc') or path.endswith('~'):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue