7664f4eb366d491f9b6d90075e7aa36bc86e38f5 angie Tue Sep 20 16:22:09 2022 -0700 Exclude curated hubs from list of mysql databases to check (because they're not mysql databases) using the 'hub:' prefix in nibPath. diff --git src/test/buildTableDescriptions.pl src/test/buildTableDescriptions.pl index b9b00ad..3e055ac 100755 --- src/test/buildTableDescriptions.pl +++ src/test/buildTableDescriptions.pl @@ -86,31 +86,31 @@ # # getActiveDbs: connect to central db, get list of active dbs # sub getActiveDbs { my $hgConf = shift; confess "Too many arguments" if (defined shift); my $centdb = $hgConf->lookup('central.db'); my $host = $hgConf->lookup('central.host'); my $username = $hgConf->lookup('central.user'); my $password = $hgConf->lookup('central.password'); my $dbh = DBI->connect("DBI:mysql:database=$centdb;host=$host", $username, $password); my $results = - $dbh->selectcol_arrayref("select name from dbDb where active = 1;"); + $dbh->selectcol_arrayref("select name from dbDb where active = 1 and nibPath not like 'hub:%';"); $dbh->disconnect(); return @{$results}; } # # simplifyFields: trim fieldSpec of occasionally-used prefix/suffix fields # sub simplifyFields { my $fieldSpec = shift; confess "Too few arguments" if (! defined $fieldSpec); confess "Too many arguments" if (defined shift); $fieldSpec =~ s/^bin,//; $fieldSpec =~ s/,crc,$/,/; return $fieldSpec; }