Commit 0ba7f48d authored by Christian Stenger's avatar Christian Stenger

Squish: Try to fix test for testing machines

Change-Id: I3213594c9ad7b947c5863d22f87e62adf418d983
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 9eff1347
......@@ -82,10 +82,12 @@ def testSaveChangesAndMakeWritable(modifiedFiles, readOnlyFiles):
clickButton(waitForObject("{text='Make Writable' type='QPushButton' unnamed='1' "
"visible='1' window=%s}" % readOnlyMBoxStr))
try:
waitForObject(cannotResetStr, 3000)
# should not be possible
test.fail("Could not reset file '%s' to writable state." % currentFile)
clickButton("{text='OK' type='QPushButton' window=%s}" % cannotResetStr)
# 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)
clickButton("{text='OK' type='QPushButton' window=%s}" % cannotResetStr)
except:
if isWritable(currentFile):
test.passes("File '%s' resetted to writable state and saved." % currentFile)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment