Browse Source

Ensure fortune diff displays all differences

Hamilton Turner 10 years ago
parent
commit
804106faf8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      toolset/benchmark/test_types/fortune_type.py

+ 5 - 1
toolset/benchmark/test_types/fortune_type.py

@@ -51,10 +51,14 @@ class FortuneTestType(FrameworkTestType):
             current_neg.append(line[1:])
           elif line[0] == '-':
             current_pos.append(line[1:])
-          elif line[0] == '@' or line == diff[:-1]:
+          elif line[0] == '@':
             failures.append( ('fail', 
               "`%s` should be `%s`" % (''.join(current_neg), ''.join(current_pos)),
               url) )
+        if len(current_pos) != 0:
+          failures.append( ('fail', 
+              "`%s` should be `%s`" % (''.join(current_neg), ''.join(current_pos)),
+              url) )
       except: 
         pass
       return failures