summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e4980b353b..223120c4fe 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