<commit_before>"""

Put this file as 'conftest.py' somewhere upwards from py-trunk, 
modify the "socketserveradr" below to point to a windows/linux
host running "py/execnet/script/loop_socketserver.py" 
and invoke e.g. from linux:

    py.test --session=MySession some_path_to_what_you_want_to_test

This should ad-hoc distribute the running of tests to
the remote machine (including rsyncing your WC). 

"""
import py
from py.__.test.terminal.remote import RemoteTerminalSession

import os

class MyRSync(py.execnet.RSync):
    def filter(self, path):
        if path.endswith('.pyc') or path.endswith('~'):
            return False
        dir, base = os.path.split(path)
        # we may want to have revision info on the other side,
        # so let's not exclude .svn directories
        #if base == '.svn': 
        #    return False
        return True<commit_msg>[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.<commit_after>"""

Put this file as 'conftest.py' somewhere upwards from py-trunk, 
modify the "socketserveradr" below to point to a windows/linux
host running "py/execnet/script/loop_socketserver.py" 
and invoke e.g. from linux:

    py.test --session=MySession some_path_to_what_you_want_to_test

This should ad-hoc distribute the running of tests to
the remote machine (including rsyncing your WC). 

"""
import py
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. "
                     "<EMAIL>")),
    )

class MyRSync(py.execnet.RSync):
    def filter(self, path):
        if path.endswith('.pyc') or path.endswith('~'):
            return False
        dir, base = os.path.split(path)
        # we may want to have revision info on the other side,
        # so let's not exclude .svn directories
        #if base == '.svn': 
        #    return False
        return True
{'fraction_non_alphanumeric': 0.09801202034211742, 'fraction_numerical': 0.002311604253351826, 'mean_word_length': 2.9345454545454546, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1671011', 'n_tokens_mistral': 668, 'n_tokens_neox': 644, 'n_words': 223}