Re: python CFFI bindings integration into notmuch build/test

2019-11-05 Thread David Bremner
Tomi Ollila writes: > alternative: > >... >print('Invoking: {}'.format(' '.join(cmd))) > >def preexec_fn(): os.environ['NOTMUCH_CONFIG'] = str(cfg_fname) > >proc = subprocess.run(cmd, timeout=5, preexec_fn=preexec_fn) >... > > The unix fork ...

Re: [PATCH 4/5] tests: run python-cffi tests

2019-11-05 Thread David Bremner
Tomi Ollila writes: > > probably > > test_expect_success "${NOTMUCH_PYTHON} -m pytest \ > --log-file=$TMP_DIRECTORY/test.output \ > $NOTMUCH_SRCDIR/bindings/python-cffi/build/stage" > > worked (which reminds me out-of-tree... ;) > despite looking

Re: python CFFI bindings integration into notmuch build/test

2019-11-05 Thread Tomi Ollila
On Sun, Nov 03 2019, David Bremner wrote: > > @@ -32,10 +33,11 @@ def notmuch(maildir): > """ > cfg_fname = maildir.path / 'notmuch-config' > cmd = ['notmuch'] + list(args) > -print('Invoking: {}'.format(' '.join(cmd))) > +env = os.environ.copy() > +