summaryrefslogtreecommitdiff
path: root/uitest/manual_tests
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-03-29 18:35:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-04-03 08:23:44 +0200
commitd76281864b0e83812c0edf7490b1e8271e89fff5 (patch)
treea84c6503db43cb3ec5c14bfc1849e11aa338fdd1 /uitest/manual_tests
parent20c680092fa2598feb4541b1c69a8389779dbae4 (diff)
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 <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'uitest/manual_tests')
-rw-r--r--uitest/manual_tests/calc.py5
1 files changed, 3 insertions, 2 deletions
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):