From 0bd286ba94f6dbd25ec7be2eb386b7607ff23c09 Mon Sep 17 00:00:00 2001 From: guido Date: Thu, 8 Feb 2007 23:50:00 +0100 Subject: [PATCH] [svn r38216] Adjusting the conftest-for-socketgateway example so it takes care of the -S option (like the default one does), this caused some test failure. --HG-- branch : trunk --- py/misc/conftest-socketgatewayrun.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/py/misc/conftest-socketgatewayrun.py b/py/misc/conftest-socketgatewayrun.py index 04e634416..10fe04485 100644 --- a/py/misc/conftest-socketgatewayrun.py +++ b/py/misc/conftest-socketgatewayrun.py @@ -16,6 +16,15 @@ from py.__.test.terminal.remote import RemoteTerminalSession 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): def filter(self, path): if path.endswith('.pyc') or path.endswith('~'):