src/utils/qa/doGenbankTests 1.12
1.12 2009/05/27 18:41:25 rhead
Simplified some if statements.
Index: src/utils/qa/doGenbankTests
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/doGenbankTests,v
retrieving revision 1.11
retrieving revision 1.12
diff -b -B -U 4 -r1.11 -r1.12
--- src/utils/qa/doGenbankTests 27 May 2009 03:29:31 -0000 1.11
+++ src/utils/qa/doGenbankTests 27 May 2009 18:41:25 -0000 1.12
@@ -84,11 +84,9 @@
fi
# specify tables that should get each test
# intronEst is a special case; it may exist only in split form
-tableExists $db intronEst
-intronEstExists=$?
-if [ 1 -eq "$intronEstExists" ] # table is split
+if tableExists $db intronEst
then
intronEstTables=$(hgsql -Ne "show tables like '%intronEst'" $db)
else
intronEstTables=intronEst
@@ -114,9 +112,9 @@
do
tableExists $db $table && getShortLabel $db $table
done
# intronEst is a special case; it may exist only in split form
-if [ 1 -eq "$intronEstExists" ] # table is split
+if ! tableExists $db intronEst # table is split
then
getShortLabel $db intronEst
fi
echo