[Zope-dev] test.py and symlinks
I need this patch to make test.py work when some of my directories are symlinked elsewhere. Without this, I can't run bin/zopectl test -vv --dir Products/CMFCore when Products is a symlink and CMFCore is also a symlink. I'll check it in soon unless someone sees a problem with it. Thanks, Florent --- test.py.~1.2.2.15.~ 2004-11-05 11:44:18.0 +0100 +++ test.py 2004-11-16 17:26:02.0 +0100 @@ -380,11 +380,12 @@ self.cwd = os.path.realpath(os.getcwd()) # Hack again for external products. if libdir: -self.libdir = os.path.realpath(os.path.join(self.cwd, libdir)) +self.libdir = os.path.join(self.cwd, libdir) else: -self.libdir = os.path.realpath(os.path.join(self.cwd, self.libdir)) -if self.libdir not in sys.path: -sys.path.insert(0, self.libdir) +self.libdir = os.path.join(self.cwd, self.libdir) +real_libdir = os.path.realpath(self.libdir) +if real_libdir not in sys.path: +sys.path.insert(0, real_libdir) # Determine where to look for tests if test_dir: self.testdir = os.path.abspath(os.path.join(self.cwd, test_dir)) -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of RD +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] test.py + INSTANCE_HOME (proposed solution)
I have made some small modifications to test.py to allow testing in INSTANCE_HOMEs. Please see: http://zope.org/Collectors/Zope/1279 An already patched version of test.py is available from here: http://zope.org/Members/shh/TestRunner/test.py Stefan -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] test.py
Jeremy Hylton wrote: Make sure App.Product is imported first, so that test.py can work. This change does not affect the old utilities/testrunner.py. This checkin message caused me to notice 'test.py' for the first time. Can you point me to any discussion/docs on it? When did/will it replace testrunner? Shouldn't the python2.2 in the #! line be python2.3? Sorry for the flood of questions, but this and the recent doctest-style tests being checked in have made me wonder if I've been missing a significant shift in testing tech. Cheers, Evan @ 4-am ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )