diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py index ebc6a987fd1d5ee48163848fb13e53c4b54bf629..0c92f7c86a7040bb879dd77bf94e4a903cc8c94f 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