From 40eb468c71e6914860be2eb22d08cf839dc9811f Mon Sep 17 00:00:00 2001 From: fijal Date: Wed, 7 Feb 2007 17:49:14 +0100 Subject: [PATCH] [svn r38082] Fix reporting (and a test for that) --HG-- branch : trunk --- py/test/rsession/testing/test_rsession.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/py/test/rsession/testing/test_rsession.py b/py/test/rsession/testing/test_rsession.py index a0e7abe16..094e72997 100644 --- a/py/test/rsession/testing/test_rsession.py +++ b/py/test/rsession/testing/test_rsession.py @@ -115,7 +115,7 @@ class TestRSessionRemote(DirSetup, BasicRsessionTest): assert tb[0].source.find("execute") != -1 def test_setup_teardown_ssh(self): - hosts = [HostInfo('localhost')] + hosts = [HostInfo('localhost:%s' % self.dest)] setup_events = [] teardown_events = [] tmpdir = py.test.ensuretemp("emptyconftest") @@ -141,7 +141,7 @@ class TestRSessionRemote(DirSetup, BasicRsessionTest): assert len(teardown_wait_ends) == len(hosts) def test_setup_teardown_run_ssh(self): - hosts = [HostInfo('localhost')] + hosts = [HostInfo('localhost:%s' % self.dest)] allevents = [] hm = HostManager(self.config, hosts=hosts) @@ -181,13 +181,13 @@ class TestRSessionRemote(DirSetup, BasicRsessionTest): """ Tests if nice level behaviour is ok """ allevents = [] - hosts = [HostInfo('localhost')] + hosts = [HostInfo('localhost:%s' % self.dest)] tmpdir = py.test.ensuretemp("nice") tmpdir.ensure("__init__.py") tmpdir.ensure("conftest.py").write(py.code.Source(""" - dist_hosts = ['localhost'] + dist_hosts = ['localhost:%s'] dist_nicelevel = 10 - """)) + """ % self.dest)) tmpdir.ensure("test_one.py").write("""def test_nice(): import os assert os.nice(0) == 10