On 2019/04/22 17:14, Kurt Mosiejczuk wrote:
> On Mon, Apr 22, 2019 at 10:12:38PM +0100, Stuart Henderson wrote:
> > >  .Ev MODPY_PYTEST_ARGS .
> > > +The directory to change to during
> > > +.Cm test
> > > +can be set via
> > > +.Ev MODPY_TEST_DIR .
> > >  All ports that generate egg-info files should set
> > >  .Ev MODPY_EGG_VERSION
> > >  to the version string used by the port's setup.py setup() function.
> 
> > I think maybe this reads a bit better?
> 
> > pytest tests are run from the directory specified in
> > .Ev MODPY_TEST_DIR ,
> > by default WRKSRC.
> 
> I think maybe if we lose the beginning "pytest" part. This isn't a pytest
> specific mechanism. It can control setuptools based tests (or other future
> testing frameworks presumably) too.
> 
> --Kurt
> 

Ah yes... How about this?


Index: man5/port-modules.5
===================================================================
RCS file: /cvs/src/share/man/man5/port-modules.5,v
retrieving revision 1.238
diff -u -p -r1.238 port-modules.5
--- man5/port-modules.5 4 Apr 2019 02:28:23 -0000       1.238
+++ man5/port-modules.5 22 Apr 2019 21:22:15 -0000
@@ -1331,6 +1331,7 @@ Sets
 .Ev MODPY_LIBDIR ,
 .Ev MODPY_SITEPKG ,
 .Ev MODPY_SETUP ,
+.Ev MODPY_TEST_DIR ,
 .Ev MODPY_TEST_LOCALE ,
 .Ev MODPY_WANTLIB ,
 .Ev MODPY_LIB_DEPENDS ,
@@ -1363,6 +1364,9 @@ Appends
 .Ev MODPY_TEST_LOCALE
 to
 .Ev TEST_ENV .
+Changes to the directory specified in
+.Ev MODPY_TEST_DIR ,
+by default WRKSRC, before running tests,
 .Ev MODPY_VERSION
 is the default version used by all python modules.
 Ports which use the setuptools module should set

Reply via email to