mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use standalone apm for running test
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = (grunt) ->
|
|||||||
rootDir = grunt.config.get('atom.shellAppDir')
|
rootDir = grunt.config.get('atom.shellAppDir')
|
||||||
appDir = grunt.config.get('atom.appDir')
|
appDir = grunt.config.get('atom.appDir')
|
||||||
atomPath = path.join(appDir, 'atom.sh')
|
atomPath = path.join(appDir, 'atom.sh')
|
||||||
apmPath = path.join(appDir, 'node_modules/.bin/apm')
|
apmPath = path.join(appDir, 'apm/node_modules/.bin/apm')
|
||||||
|
|
||||||
packageSpecQueue = async.queue (packagePath, callback) ->
|
packageSpecQueue = async.queue (packagePath, callback) ->
|
||||||
options =
|
options =
|
||||||
@@ -26,7 +26,7 @@ module.exports = (grunt) ->
|
|||||||
env: _.extend({}, process.env, ATOM_PATH: rootDir)
|
env: _.extend({}, process.env, ATOM_PATH: rootDir)
|
||||||
grunt.verbose.writeln "Launching #{path.basename(packagePath)} specs."
|
grunt.verbose.writeln "Launching #{path.basename(packagePath)} specs."
|
||||||
spawn options, (error, results, code) ->
|
spawn options, (error, results, code) ->
|
||||||
|
|
||||||
failedPackages.push path.basename(packagePath) if error
|
failedPackages.push path.basename(packagePath) if error
|
||||||
callback()
|
callback()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user