summaryrefslogtreecommitdiff
path: root/tests/system/shared/build_utils.py
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@digia.com>2014-01-07 14:30:39 +0100
committerRobert Loehning <robert.loehning@digia.com>2014-01-07 15:24:57 +0100
commitf5ec3f4237c0279ab5f9fc7ae4e4d36f884e1447 (patch)
treeb6aac31cc58c62b711853c053d6f30ebcc6424d5 /tests/system/shared/build_utils.py
parent1362d9d262cb18f53a7d55717852ad63d501e480 (diff)
downloadqt-creator-f5ec3f4237c0279ab5f9fc7ae4e4d36f884e1447.tar.gz
Squish: Make some variables local
Change-Id: I1687ae59c6327616ee18f6120dca9d0d0ce40bcf Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'tests/system/shared/build_utils.py')
-rw-r--r--tests/system/shared/build_utils.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py
index 5a2ff968cc..c2755e710e 100644
--- a/tests/system/shared/build_utils.py
+++ b/tests/system/shared/build_utils.py
@@ -35,10 +35,6 @@ installedSignalHandlers = {}
overridenInstallLazySignalHandlers = False
# flag to indicate whether a tasks file should be created when building ends with errors
createTasksFileOnError = True
-# currently used directory for tasks files
-tasksFileDir = None
-# counter for written tasks files
-tasksFileCount = 0
# call this function to override installLazySignalHandler()
def overrideInstallLazySignalHandler():
@@ -117,9 +113,14 @@ def dumpBuildIssues(listModel):
range(Qt.UserRole, Qt.UserRole + 6))])
return issueDump
+# counter for written tasks files
+tasksFileCount = 0
+
# helper method that writes a tasks file
def createTasksFile(buildIssues):
- global tasksFileDir, tasksFileCount
+ # currently used directory for tasks files
+ tasksFileDir = None
+ global tasksFileCount
if tasksFileDir == None:
tasksFileDir = os.getcwd() + "/tasks"
tasksFileDir = os.path.abspath(tasksFileDir)