fix 'rake spec' to always exit() based on the return code, to workaround race conditions with the new iOS 6 simulator

This commit is contained in:
Laurent Sansonetti
2012-10-09 18:05:40 +02:00
parent f6eafaf8bf
commit 3b4557a014
2 changed files with 7 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ task :simulator => ['build:simulator'] do
# Launch the simulator.
xcode = App.config.xcode_dir
env = xcode.match(/^\/Applications/) ? "DYLD_FRAMEWORK_PATH=\"#{xcode}/../Frameworks\":\"#{xcode}/../OtherFrameworks\"" : ''
env << ' NO_FOREGROUND_SIM=1' if App.config.spec_mode
env << ' SIM_SPEC_MODE=1' if App.config.spec_mode
sim = File.join(App.config.bindir, 'sim')
debug = (ENV['debug'] ? 1 : (App.config.spec_mode ? '0' : '2'))
App.info 'Simulate', app