diff options
Diffstat (limited to 'tests/system/shared/project.py')
-rw-r--r-- | tests/system/shared/project.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py index 6228a9b8f2..43f5c34d2b 100644 --- a/tests/system/shared/project.py +++ b/tests/system/shared/project.py @@ -449,3 +449,9 @@ def __getSupportedPlatforms__(text, getAsStrings=False): if getAsStrings: result = QtQuickConstants.getTargetsAsStrings(result) return result, version + +# copy example project (sourceExample is path to project) to temporary directory inside repository +def prepareTemplate(sourceExample): + templateDir = os.path.abspath(tempDir() + "/template") + shutil.copytree(sourceExample, templateDir) + return templateDir |