don't start the repl in spec mode

This commit is contained in:
Laurent Sansonetti
2012-03-24 20:02:21 +01:00
parent 8cbdd7f5e2
commit e7b378a44f
2 changed files with 18 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ task :simulator => ['build:simulator'] do
xcode = App.config.xcode_dir
env = xcode.match(/^\/Applications/) ? "DYLD_FRAMEWORK_PATH=\"#{xcode}/../Frameworks\":\"#{xcode}/../OtherFrameworks\"" : ''
sim = File.join(App.config.bindir, 'sim')
debug = (ENV['debug'] || '0') == '1' ? 1 : 0
debug = (ENV['debug'] || '0') == '1' ? 1 : (App.config.spec_mode ? 0 : 2)
App.info 'Simulate', app
at_exit { system("stty echo") } # Just in case the simulator launcher crashes and leaves the terminal without echo.
sh "#{env} #{sim} #{debug} #{family_int} #{target} \"#{xcode}\" \"#{app}\""