Print out a PASS line if no warnings were produced
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 19 Sep 2008 11:26:04 +0000 (07:26 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 19 Sep 2008 11:26:04 +0000 (07:26 -0400)
compare/compare.py

index a10aba6..265a639 100644 (file)
@@ -158,9 +158,13 @@ altspec = ts.parseSpec(altspecfile)
 suppressions = load_suppressions(suppressionfile)
 
 
-warnings = compare_specs(refspec, altspec)
-
-
-for w in warnings:
+warnings = []
+for w in compare_specs(refspec, altspec):
     if not w in suppressions:
+        warnings.append(w)
+
+if len(warnings) == 0:
+    print "PASS"
+else:
+    for w in warnings:
         print "WARNING %s" % w