git.annexia.org
/
fedora-mingw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25b3b07
)
Print out a PASS line if no warnings were produced
author
Daniel P. Berrange
<berrange@redhat.com>
Fri, 19 Sep 2008 11:26:04 +0000
(07:26 -0400)
committer
Daniel P. Berrange
<berrange@redhat.com>
Fri, 19 Sep 2008 11:26:04 +0000
(07:26 -0400)
compare/compare.py
patch
|
blob
|
history
diff --git
a/compare/compare.py
b/compare/compare.py
index
a10aba6
..
265a639
100644
(file)
--- 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