forked from qt-creator/qt-creator
Squish: Port tst_WELP03 to Python3
Change-Id: I997fb8cc44fab986b5f4e0aa6e6f1f92fccfd54a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
############################################################################
|
||||
#
|
||||
# Copyright (C) 2016 The Qt Company Ltd.
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# Contact: https://www.qt.io/licensing/
|
||||
#
|
||||
# This file is part of Qt Creator.
|
||||
@@ -93,8 +93,8 @@ def main():
|
||||
example = findExampleOrTutorial(listView, ".*", True)
|
||||
test.verify(example is None, "Verifying: No example is shown.")
|
||||
|
||||
proFiles = map(lambda p: os.path.join(p, "opengl", "2dpainting", "2dpainting.pro"),
|
||||
Qt5Path.getPaths(Qt5Path.EXAMPLES))
|
||||
proFiles = [os.path.join(p, "opengl", "2dpainting", "2dpainting.pro")
|
||||
for p in Qt5Path.getPaths(Qt5Path.EXAMPLES)]
|
||||
cleanUpUserFiles(proFiles)
|
||||
for p in proFiles:
|
||||
removePackagingDirectory(os.path.dirname(p))
|
||||
@@ -115,8 +115,8 @@ def main():
|
||||
|
||||
# go to "Welcome" page and choose another example
|
||||
switchViewTo(ViewConstants.WELCOME)
|
||||
proFiles = map(lambda p: os.path.join(p, "widgets", "itemviews", "addressbook", "addressbook.pro"),
|
||||
Qt5Path.getPaths(Qt5Path.EXAMPLES))
|
||||
proFiles = [os.path.join(p, "widgets", "itemviews", "addressbook", "addressbook.pro")
|
||||
for p in Qt5Path.getPaths(Qt5Path.EXAMPLES)]
|
||||
cleanUpUserFiles(proFiles)
|
||||
for p in proFiles:
|
||||
removePackagingDirectory(os.path.dirname(p))
|
||||
|
Reference in New Issue
Block a user