Browse Source

Do not raise exception when failing fortune validation.

Leandro Pereira 10 years ago
parent
commit
251546ba42
1 changed files with 2 additions and 1 deletions
  1. 2 1
      toolset/benchmark/framework_test.py

+ 2 - 1
toolset/benchmark/framework_test.py

@@ -378,7 +378,8 @@ class FrameworkTest:
       parser = FortuneHTMLParser()
       parser = FortuneHTMLParser()
       parser.feed(htmlString)
       parser.feed(htmlString)
 
 
-      return (parser.isValidFortune(out), )
+      valid = parser.isValidFortune(out)
+      return (valid, '' if valid else 'Did not pass validation')
     except:
     except:
       print "Got exception when trying to validate the fortune test: {exception} ".format(exception=traceback.format_exc())
       print "Got exception when trying to validate the fortune test: {exception} ".format(exception=traceback.format_exc())
     return (False, err_str)
     return (False, err_str)