check for getdb.sh in tests

Test Plan: run tests without getdb.sh

Reviewers: #sourcecontrol, ttung, durham

Reviewed By: durham

Differential Revision: https://phabricator.fb.com/D3006362

Signature: t1:3006362:1457030481:7dc0af51e84c6d7007b74e052e804b8fd0be6062
This commit is contained in:
Ryan McElroy 2016-03-07 02:52:23 -08:00
parent b9082ab1ff
commit 60d590a50b

View File

@ -1,3 +1,4 @@
test -f "$TESTDIR/getdb.sh" || (echo "getdb.sh missing" && exit 80)
DBHOSTPORT=$($TESTDIR/getdb.sh)
DBHOST=`echo $DBHOSTPORT | cut -d : -f 1`
DBPORT=`echo $DBHOSTPORT | cut -d : -f 2`
@ -37,7 +38,6 @@ value char(40) BINARY NOT NULL,
UNIQUE KEY bookmarkindex (repo, namespace, name)
);' 2>/dev/null
function initserver() {
hg init $1
cat >> $1/.hg/hgrc <<EOF