aboutsummaryrefslogtreecommitdiffstats
path: root/utils/lit
diff options
context:
space:
mode:
authorEli Bendersky <eli.bendersky@intel.com>2012-03-25 09:42:28 +0000
committerEli Bendersky <eli.bendersky@intel.com>2012-03-25 09:42:28 +0000
commit0417d7dca09b0beb7f27045b0ab9e93096905c74 (patch)
treed6ba86bd0fdbd152220605e7553b004e75a972bb /utils/lit
parentcc85160672e3b2d5ec363cc4e151e5b944a60454 (diff)
downloadexternal_llvm-0417d7dca09b0beb7f27045b0ab9e93096905c74.zip
external_llvm-0417d7dca09b0beb7f27045b0ab9e93096905c74.tar.gz
external_llvm-0417d7dca09b0beb7f27045b0ab9e93096905c74.tar.bz2
Fix lit failure on cmake-clang-x64_64-linux bot, apparently due to its having
a very (*very*) old version of Python (2.4?) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/TestingConfig.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py
index e4980b3..223120c 100644
--- a/utils/lit/lit/TestingConfig.py
+++ b/utils/lit/lit/TestingConfig.py
@@ -118,5 +118,8 @@ class TestingConfig:
@property
def root(self):
"""root attribute - The root configuration for the test suite."""
- return self if self.parent is None else self.parent.root
+ if self.parent is None:
+ return self
+ else:
+ return self.parent.root