Commit ba6cc1d0 authored by Christian Stenger's avatar Christian Stenger

Squish: Cleanup workarounds.py

Change-Id: Ibbdae1c85d49122928fda97ea5f3d83245eab7ed
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent a58810ce
......@@ -172,18 +172,11 @@ class JIRA:
return
fetched = " ".join(fetched.split())
resoInd = fetched.find('resolution-val')
statInd = fetched.find('status-val')
if resoInd == statInd == -1:
test.log("Neither resolution nor status found inside fetched data.",
if resoInd == -1:
test.log("Resolution not found inside fetched data.",
"%s[...]" % fetched[:200])
else:
if resoInd == -1:
test.log("Fetched and cropped data: [...]%s[...]" % fetched[statInd-20:statInd+800])
elif statInd == -1:
test.log("Fetched and cropped data: [...]%s[...]" % fetched[resoInd-720:resoInd+100])
else:
test.log("Fetched and cropped data (status): [...]%s[...]" % fetched[statInd-20:statInd+300],
"Fetched and cropped data (resolution): [...]%s[...]" % fetched[resoInd-20:resoInd+100])
test.log("Fetched and cropped data: [...]%s[...]" % fetched[resoInd-20:resoInd+100])
# this function initializes the bug dict for localOnly usage and
# for later lookup which function to call for which bug
......
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