Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu
[oota-llvm.git] / utils / lit / lit / TestingConfig.py
index 78bf268f101d1244b866cd2ed4570bbe634c9d54..e4980b353bd1fd663c397463b956a2bf88dd88b5 100644 (file)
@@ -114,3 +114,9 @@ class TestingConfig:
             # files. Should we distinguish them?
             self.test_source_root = str(self.test_source_root)
         self.excludes = set(self.excludes)
+
+    @property
+    def root(self):
+        """root attribute - The root configuration for the test suite."""
+        return self if self.parent is None else self.parent.root
+