From d76281864b0e83812c0edf7490b1e8271e89fff5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 29 Mar 2018 18:35:54 +0200 Subject: Create temp copies of test docs in Python/UITests ...where necessary, so the tests will succeed if SRCDIR is a read-only tree. Change-Id: Iea4c52d5982d3eba079088ef1670ff557ce30c3f Reviewed-on: https://gerrit.libreoffice.org/52122 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- uitest/manual_tests/calc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'uitest/manual_tests') diff --git a/uitest/manual_tests/calc.py b/uitest/manual_tests/calc.py index 2f4524134f77..9c86b6c3e6d9 100644 --- a/uitest/manual_tests/calc.py +++ b/uitest/manual_tests/calc.py @@ -12,12 +12,13 @@ from libreoffice.calc.document import get_cell_by_position from uitest.uihelper.common import get_state_as_dict, type_text from uitest.uihelper.calc import enter_text_to_cell -from uitest.path import get_srcdir_url +import org.libreoffice.unotest +import pathlib import time def get_url_for_data_file(file_name): - return get_srcdir_url() + "/uitest/manual_tests/data/" + file_name + return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() class ManualCalcTests(UITestCase): -- cgit