summaryrefslogtreecommitdiff
path: root/tests/system/shared/qtcreator.py
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2012-01-09 15:33:14 +0100
committerBill King <bill.king@nokia.com>2012-01-09 16:11:25 +0100
commitce5fc68c8d6ebc52a84b005d5feaffd6bff0a2e4 (patch)
tree5ca11f89a57085b6e98ed60ff53a7cfddc820be2 /tests/system/shared/qtcreator.py
parent785b82177fe55d2773b7c30884979759c4ab9291 (diff)
downloadqt-creator-ce5fc68c8d6ebc52a84b005d5feaffd6bff0a2e4.tar.gz
Squish: Add no settings path variable, for runs without pre-settings.
Change-Id: I12cc0080e2423c48a43937e0f7219357e80d4120 Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Diffstat (limited to 'tests/system/shared/qtcreator.py')
-rw-r--r--tests/system/shared/qtcreator.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py
index ebc6a987fd..0c92f7c86a 100644
--- a/tests/system/shared/qtcreator.py
+++ b/tests/system/shared/qtcreator.py
@@ -65,11 +65,11 @@ else:
defaultQtVersion = "Desktop Qt 4.7.4 for GCC (Qt SDK)"
srcPath = os.getenv("SYSTEST_SRCPATH", sdkPath + "/src")
-cwd = os.path.abspath(cwd)
-tmpSettingsDir = tempDir()
-tmpSettingsDir = os.path.abspath(tmpSettingsDir+"/settings")
-shutil.copytree(cwd, tmpSettingsDir)
# the following only doesn't work if the test ends in an exception
-atexit.register(__removeTmpSettingsDir__)
-SettingsPath = ' -settingspath "%s"' % tmpSettingsDir
-
+if os.getenv("SYSTEST_NOSETTINGSPATH") != "1":
+ cwd = os.path.abspath(cwd)
+ tmpSettingsDir = tempDir()
+ tmpSettingsDir = os.path.abspath(tmpSettingsDir+"/settings")
+ shutil.copytree(cwd, tmpSettingsDir)
+ atexit.register(__removeTmpSettingsDir__)
+ SettingsPath = ' -settingspath "%s"' % tmpSettingsDir