aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-05-15 15:16:21 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-05-23 10:39:55 +0000
commit71249b93a5d12a320b44c608c05fb9d220788a18 (patch)
treeebe8764115184dcbb6e271d146a1e63998d3f1cd /testing
parent9722bf66fb962d4c7a4be172c36efd23ebae32e7 (diff)
Format python files to use PEP8
Change-Id: I8dc16c10565da8f93ba5cb7cace004f8eaf52236 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'testing')
-rw-r--r--testing/runner.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/testing/runner.py b/testing/runner.py
index 945e32469..3c99df71c 100644
--- a/testing/runner.py
+++ b/testing/runner.py
@@ -61,7 +61,7 @@ this_dir = os.path.dirname(this_file)
build_scripts_dir = os.path.abspath(os.path.join(this_dir, '../build_scripts'))
sys.path.append(build_scripts_dir)
-from utils import detectClang
+from utils import detect_clang
class TestRunner(object):
def __init__(self, log_entry, project, index):
@@ -74,19 +74,19 @@ class TestRunner(object):
else:
self.logfile = os.path.join(log_dir, project + ".log")
os.environ['CTEST_OUTPUT_ON_FAILURE'] = '1'
- self._setupClang()
+ self._setup_clang()
self._setup()
- def _setupClang(self):
+ def _setup_clang(self):
if sys.platform != "win32":
return
- clangDir = detectClang()
- if clangDir[0]:
- clangBinDir = os.path.join(clangDir[0], 'bin')
+ clang_dir = detect_clang()
+ if clang_dir[0]:
+ clang_bin_dir = os.path.join(clang_dir[0], 'bin')
path = os.environ.get('PATH')
- if not clangBinDir in path:
- os.environ['PATH'] = clangBinDir + os.pathsep + path
- print("Adding %s as detected by %s to PATH" % (clangBinDir, clangDir[1]))
+ if not clang_bin_dir in path:
+ os.environ['PATH'] = clang_bin_dir + os.pathsep + path
+ print("Adding %s as detected by %s to PATH" % (clang_bin_dir, clang_dir[1]))
def _find_ctest(self):
"""