Squish: Always use the same function for preparing templates

Change-Id: I90dac33dde4c0c3d39c8e8038371dfbb3403dce3
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
Robert Loehning
2012-04-05 14:29:13 +02:00
committed by Robert Löhning
parent 2aa4b803a6
commit f521c9f062
5 changed files with 9 additions and 28 deletions

View File

@@ -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