From a128ecb8cfe71a6aeffefcda0682766388931798 Mon Sep 17 00:00:00 2001 From: hpk Date: Sun, 4 Feb 2007 16:42:55 +0100 Subject: [PATCH] [svn r37919] use a less ambigous test package name --HG-- branch : trunk --- py/test/rsession/testing/test_master.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py/test/rsession/testing/test_master.py b/py/test/rsession/testing/test_master.py index cc33b3807..c9153f0e1 100644 --- a/py/test/rsession/testing/test_master.py +++ b/py/test/rsession/testing/test_master.py @@ -96,7 +96,7 @@ def test_dispatch_loop(): class TestSlave: def setup_class(cls): cls.tmpdir = tmpdir = py.test.ensuretemp(cls.__name__) - pkgpath = tmpdir.join("pkg") + cls.pkgpath = pkgpath = tmpdir.join("slavetestpkg") pkgpath.ensure("__init__.py") pkgpath.join("test_something.py").write(py.code.Source(""" def funcpass(): @@ -114,10 +114,11 @@ class TestSlave: return self.config.get_collector_trail(item) def test_slave_setup(self): + pkgname = self.pkgpath.basename host = HostInfo("localhost:%s" %(self.tmpdir,)) host.initgateway() channel = setup_slave(host, self.config) - spec = self._gettrail("pkg", "test_something.py", "funcpass") + spec = self._gettrail(pkgname, "test_something.py", "funcpass") print "sending", spec channel.send(spec) output = ReprOutcome(channel.receive())