Skip to content
Snippets Groups Projects
Commit 699ef0e0 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

run mysql tests *first* (they're more important), and if we can connect to db...

run mysql tests *first* (they're more important), and if we can connect to db but browserid table doesn't exist, we still have db connectivity and can run tests
parent fb70d91f
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ fi
# vows hates absolute paths. sheesh.
cd $BASEDIR
for env in test_json test_mysql ; do
for env in test_mysql test_json ; do
export NODE_ENV=$env
$SCRIPT_DIR/test_db_connectivity.js
if [ $? = 0 ] ; then
......
......@@ -13,6 +13,7 @@ var dbCfg = configuration.get('database');
delete dbCfg.create_schema;
db.open(dbCfg, function (r) {
if (r && r.message === "Unknown database 'browserid'") r = undefined;
function end() { process.exit(r === undefined ? 0 : 1); }
if (r === undefined) db.close(end);
else end();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment