axed asyncblock. tweaked test_bootstrap
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/commit/08599f54 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/tree/08599f54 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/diff/08599f54 Branch: refs/heads/cordova-client Commit: 08599f54c011e07b6d06c27a141fbdae270226f5 Parents: 329aafb Author: Fil Maj <maj....@gmail.com> Authored: Sun Sep 23 11:17:18 2012 -0700 Committer: Fil Maj <maj....@gmail.com> Committed: Sun Sep 23 11:17:18 2012 -0700 ---------------------------------------------------------------------- package.json | 1 - test_bootstrap.js | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/08599f54/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index 01d0747..7d44940 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "pluginstall":"git://github.com/imhotep/pluginstall.git", "node-xcode":"git://github.com/imhotep/node-xcode.git", "express":"3.0", - "asyncblock":"2.1.4", "shelljs":"0.0.4", "ncallbacks":"1.0.0" }, http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/08599f54/test_bootstrap.js ---------------------------------------------------------------------- diff --git a/test_bootstrap.js b/test_bootstrap.js index 41e51dc..603e3de 100644 --- a/test_bootstrap.js +++ b/test_bootstrap.js @@ -1,17 +1,18 @@ +/** + * TEST BOOTSTRAP FILE + * Runs through any bs to make sure the tests are good to go. + **/ + var fs = require('fs'), path = require('path'), util = require('./src/util'), - asyncblock = require('asyncblock'), platforms = require('./platforms'); -// Simply detects whether all platform libs have been cloned. - -asyncblock(function(flow) { - platforms.forEach(function(p) { - if (!fs.existsSync(path.join(__dirname, 'lib', p))) { - util.getPlatformLib(p, flow); - } - }); - process.exit(0); +// If a platform library dependency does not exist, will clone it down. +platforms.forEach(function(p) { + if (!fs.existsSync(path.join(__dirname, 'lib', p))) { + util.getPlatformLib(p); + } }); +process.exit(0);