Merge pull request #14795 from atom/wl-please-test-where-i-tell-you-to

Always run tests where directed
This commit is contained in:
Lee Dohm
2017-07-19 15:17:52 -07:00
committed by GitHub

View File

@@ -120,7 +120,9 @@ class AtomApplication
Promise.all(windowsClosePromises).then(=> @disposable.dispose())
launch: (options) ->
if options.pathsToOpen?.length > 0 or options.urlsToOpen?.length > 0 or options.test or options.benchmark or options.benchmarkTest
if options.test or options.benchmark or options.benchmarkTest
@openWithOptions(options)
else if options.pathsToOpen?.length > 0 or options.urlsToOpen?.length > 0
if @config.get('core.restorePreviousWindowsOnStart') is 'always'
@loadState(_.deepClone(options))
@openWithOptions(options)