diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-29 18:35:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-04-03 08:23:44 +0200 |
commit | d76281864b0e83812c0edf7490b1e8271e89fff5 (patch) | |
tree | a84c6503db43cb3ec5c14bfc1849e11aa338fdd1 /pyuno | |
parent | 20c680092fa2598feb4541b1c69a8389779dbae4 (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 'pyuno')
-rw-r--r-- | pyuno/qa/pytests/insertremovecells.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyuno/qa/pytests/insertremovecells.py b/pyuno/qa/pytests/insertremovecells.py index 0d7979c4c8d1..e14717639d7e 100644 --- a/pyuno/qa/pytests/insertremovecells.py +++ b/pyuno/qa/pytests/insertremovecells.py @@ -9,7 +9,7 @@ try: except ImportError: from urllib import pathname2url -from org.libreoffice.unotest import pyuno, mkPropertyValue +from org.libreoffice.unotest import pyuno, mkPropertyValue, makeCopyFromTDOC class InsertRemoveCells(unittest.TestCase): @@ -29,8 +29,7 @@ class InsertRemoveCells(unittest.TestCase): ('Hidden', True), ('ReadOnly', False) )) - tdoc_dir = getenv('TDOC') - tdoc_path = pathname2url(path.join(tdoc_dir, 'fdo74824.ods')) + tdoc_path = pathname2url(makeCopyFromTDOC('fdo74824.ods')) if platform.system() == 'Windows': tdoc_path = re.sub(r'^//(/[A-Za-z]:/)/', r'\1', tdoc_path) url = 'file://' + tdoc_path |