Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Hi Mike,

Kaganski Mike wrote:
On 21.04.2019 0:22, Thorsten Behrens wrote:
Hmm - so the uitests are rigging the office in a very specific way,
using subprocess.Popen to spawn a child soffice process from python
(which calls CreateProcess on Windows). Code for that is in
uitest/libreoffice/connection.py, Python3 help blurb is

  https://docs.python.org/3/library/subprocess.html#subprocess.Popen

It is a tad surprising that this would somehow 'think' it is still the
main python executable on Windows, perhaps there's a way to
parameterize the Popen call differently to rectify that?

I am quite sure that's python.exe process that I debug in VS here (path: 
C:\lo\src\core\instdir\program\python-core-3.5.5\bin\python.exe, 
launched by python.exe in C:\lo\src\core\instdir\program); with a 
command line like this:

No idea where I got the impression you were talking about uitests -
you didn't mention it anywhere. :/

Anyway, what I say above is a nonsense, as you're referencing pyuno's
own unittests here, which are even more special (and exhibit the
behaviour you describe). ;)

That stuff pulls in test module's libtest (via dlopen from
initTestEnvironment (in pyuno_module.cxx)), which in turn rigs up a
very minimal office suitable for unit tests (see test/Library_test.mk
for what's linked into that).

So this is an artificial environment, that -- except for python-based
unit tests -- is not going to happen in the wild. With that, your
change is only strictly needed if there would be python tests
exercising xmlsecurity functionality.

Cheers,

-- Thorsten

Attachment: signature.asc
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.