sd/qa/uitest/impress_tests/exportToPDF.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit e0e1e6fa7f71c2702a79c7594ebb4dea0441b737 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sat Apr 12 14:23:11 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Apr 13 18:36:26 2025 +0200 attempt to make the impress UITest more reliable I __think__ the spate of UI test failures on jenkins are because multiple concurrent builds are ending up trying to use the same temporary file. Change-Id: I56274cadf40f043c3cf98a82dee3d7cf796e0839 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184094 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sd/qa/uitest/impress_tests/exportToPDF.py b/sd/qa/uitest/impress_tests/exportToPDF.py index 4a1f1800f649..d35f29d9029a 100644 --- a/sd/qa/uitest/impress_tests/exportToPDF.py +++ b/sd/qa/uitest/impress_tests/exportToPDF.py @@ -13,6 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues from org.libreoffice.unotest import systemPathToFileUrl from tempfile import TemporaryDirectory import os.path +import os class exportToPDF(UITestCase): @@ -20,7 +21,7 @@ class exportToPDF(UITestCase): def test_checkDefaultValues(self): with TemporaryDirectory() as tempdir: - xFilePath = os.path.join(tempdir, 'exportToPDFFromImpress-tmp.pdf') + xFilePath = os.path.join(tempdir, 'exportToPDFFromImpress-tmp' + str(os.getpid()) + '.pdf') with self.ui_test.create_doc_in_start_center("impress"):