Commit c7ca78af authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Revert unsuccessful fix for build-machines



Change-Id: I47865c18ba24ce8a732046597fe27f32c4edf3e3
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 384b024c
......@@ -82,16 +82,14 @@ 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)
clickButton("{text='OK' type='QPushButton' window=%s}" % cannotResetStr)
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)
if currentFile in readOnlyFiles:
test.passes("File '%s' reset to writable state and saved." % currentFile)
readOnlyFiles.remove(currentFile)
else:
test.fatal("Creator states file '%s' is read-only - but supposed to be "
......
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