mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Added a "component/product" sanity check.
This commit is contained in:
parent
1845734038
commit
f62e68a8af
@ -50,12 +50,30 @@ PutHeader("Bugzilla Sanity Check");
|
||||
|
||||
print "OK, now running sanity checks.<P>\n";
|
||||
|
||||
my @row;
|
||||
|
||||
Status("Checking components/products");
|
||||
|
||||
my @checklist;
|
||||
SendSQL("select distinct product, component from bugs");
|
||||
while (@row = FetchSQLData()) {
|
||||
my @copy = @row;
|
||||
push(@checklist, \@copy);
|
||||
}
|
||||
|
||||
foreach my $ref (@checklist) {
|
||||
my ($product, $component) = (@$ref);
|
||||
SendSQL("select count(*) from components where program = '$product' and value = '$component'");
|
||||
if (FetchOneColumn() != 1) {
|
||||
Alert("Bug(s) found with invalid product/component: $product/$component");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Status("Checking profile ids...");
|
||||
|
||||
SendSQL("select userid,login_name from profiles");
|
||||
|
||||
my @row;
|
||||
|
||||
my %profid;
|
||||
|
||||
while (@row = FetchSQLData()) {
|
||||
|
Loading…
Reference in New Issue
Block a user