From c959674a86eede2d710f11fe2aeb6fb9674807c0 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Print out a PASS line if no warnings were produced --- compare/compare.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 1.8.3.1