forked from qt-creator/qt-creator
Squish: Try to fix test for testing machines
Change-Id: I3213594c9ad7b947c5863d22f87e62adf418d983 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -82,6 +82,8 @@ def testSaveChangesAndMakeWritable(modifiedFiles, readOnlyFiles):
|
||||
clickButton(waitForObject("{text='Make Writable' type='QPushButton' unnamed='1' "
|
||||
"visible='1' window=%s}" % readOnlyMBoxStr))
|
||||
try:
|
||||
# avoid an AUT crash that happens frequently on the testing machines
|
||||
if currentApplicationContext().isRunning:
|
||||
waitForObject(cannotResetStr, 3000)
|
||||
# should not be possible
|
||||
test.fail("Could not reset file '%s' to writable state." % currentFile)
|
||||
|
Reference in New Issue
Block a user