solenv/gbuild/UITest.mk |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 48791a1edce3882f2e3bb13564eeeda3ba08ea38
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Dec 24 14:27:56 2025 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Wed Dec 24 16:05:19 2025 +0100

    UITests: create .pyc files in WORKDIR, to keep SRCDIR clean
    
    PYTHONPYCACHEPREFIX env variable was introduced in Python 3.8.
    Using it allows to avoid things like this:
    
    $ git status --ignored
    ...
    Ignored files:
      (use "git add -f <file>..." to include in what will be committed)
            sc/qa/uitest/autofilter/__pycache__/
            sc/qa/uitest/autofilter2/__pycache__/
            sc/qa/uitest/calc_tests/__pycache__/
            sc/qa/uitest/calc_tests2/__pycache__/
            ...
    
    Change-Id: Ib4120956b3a7e1737cf21183e135a2e8c31ebb7c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196200
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/solenv/gbuild/UITest.mk b/solenv/gbuild/UITest.mk
index b00c9c504bd0..8d2fd2fc603f 100644
--- a/solenv/gbuild/UITest.mk
+++ b/solenv/gbuild/UITest.mk
@@ -78,6 +78,7 @@ else
                PYTHONPATH="$(PYPATH)" \
                TestUserDir="$(call gb_Helper_make_url,$(dir $(call 
gb_UITest_get_target,$*)))" \
                PYTHONDONTWRITEBYTECODE=0 \
+               PYTHONPYCACHEPREFIX="$(WORKDIR)/Pycache" \
                LO_RUNNING_UI_TEST=1 \
                $(if $(ENABLE_WERROR),PYTHONWARNINGS=error) \
                $(if $(filter WNT,$(OS)),TZ=) \

Reply via email to