aboutsummaryrefslogtreecommitdiffstats
path: root/sanitycheck.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-03-22 00:47:04 +0000
committerterry%mozilla.org <>2000-03-22 00:47:04 +0000
commit6b2eec91f21d4aa28e68f18435c8636f377a4b2a (patch)
tree855b795f02d39a7d676949572d872d15bf1e7901 /sanitycheck.cgi
parentc7ae4f650a612ccf62f68c9894f5a6cd62f464b0 (diff)
downloadbugs-6b2eec91f21d4aa28e68f18435c8636f377a4b2a.tar
bugs-6b2eec91f21d4aa28e68f18435c8636f377a4b2a.tar.gz
bugs-6b2eec91f21d4aa28e68f18435c8636f377a4b2a.tar.bz2
bugs-6b2eec91f21d4aa28e68f18435c8636f377a4b2a.tar.xz
bugs-6b2eec91f21d4aa28e68f18435c8636f377a4b2a.zip
Patch by "Matt Masson" <matthew@zeroknowledge.com> -- allow definition
of different target milestones by product.
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-xsanitycheck.cgi19
1 files changed, 19 insertions, 0 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi
index e7008f799..ee6d5e188 100755
--- a/sanitycheck.cgi
+++ b/sanitycheck.cgi
@@ -194,6 +194,25 @@ foreach my $ref (@checklist) {
}
}
+# Adding check for Target Milestones / products - matthew@zeroknowledge.com
+Status("Checking milestone/products");
+
+@checklist = ();
+SendSQL("select distinct product, target_milestone from bugs");
+while (@row = FetchSQLData()) {
+ my @copy = @row;
+ push(@checklist, \@copy);
+}
+
+foreach my $ref (@checklist) {
+ my ($product, $milestone) = (@$ref);
+ SendSQL("SELECT count(*) FROM milestones WHERE product = '$product' AND value = '$milestone'");
+ if(FetchOneColumn() != 1) {
+ Alert("Bug(s) found with invalud product/milestone: $product/$milestone");
+ }
+}
+
+
Status("Checking components/products");