Commit 5ab26e66 authored by Kamlesh Todai's avatar Kamlesh Todai
Browse files

Fix the string to float conversion error in Summarize_Newman_Html_Reports.py

parent dbc0f21a
Pipeline #28032 canceled with stages
in 15 seconds
......@@ -97,7 +97,7 @@ def processFile(fnm, platform, rowNo, colOffset, envFileNamesPopulated):
skippedTests = info
count += 1
# Compute the pass rate (percentage of test that passed for the collection); Avoid ZeroDivisionError
if (totalAssertionPassed > 0):
if (float(totalAssertionPassed) > 0.0):
passRate = (100 * ( (float(totalAssertionPassed) - float(totalAssertionFailed)) / float(totalAssertionPassed) ) )
else:
passRate = 0.0
......
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