From: Daniel P. Berrange <"Daniel P. Berrange "> Date: Fri, 19 Sep 2008 11:26:04 +0000 (-0400) Subject: Print out a PASS line if no warnings were produced X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=c959674a86eede2d710f11fe2aeb6fb9674807c0;p=fedora-mingw.git Print out a PASS line if no warnings were produced --- diff --git a/compare/compare.py b/compare/compare.py index a10aba6..265a639 100644 --- a/compare/compare.py +++ b/compare/compare.py @@ -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