forked from qt-creator/qt-creator
Squish: Enclose code model tests in sections
Change-Id: I4478acfc5ea7b3fa22d1cd17576e04fdda81dbb9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -231,3 +231,13 @@ class Qt5Path:
|
||||
path = "Docs/Qt-5.%d" % qtMinorVersion
|
||||
|
||||
return os.path.join(Qt5Path.__createPlatformQtPath__(qtMinorVersion), path)
|
||||
|
||||
class TestSection:
|
||||
def __init__(self, description):
|
||||
self.description = description
|
||||
|
||||
def __enter__(self):
|
||||
test.startSection(self.description)
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
test.endSection()
|
||||
|
||||
Reference in New Issue
Block a user