lib/snapshot/runner.rb in snapshot-1.4.3 vs lib/snapshot/runner.rb in snapshot-1.4.4
- old
+ new
@@ -7,12 +7,12 @@
def work
if File.exist?("./fastlane/snapshot.js") or File.exist?("./snapshot.js")
Helper.log.warn "Found old snapshot configuration file 'snapshot.js'".red
Helper.log.warn "You updated to snapshot 1.0 which now uses UI Automation".red
- Helper.log.warn "Please follow the migration guide: https://github.com/KrauseFx/snapshot/blob/master/MigrationGuide.md".red
- Helper.log.warn "And read the updated documentation: https://github.com/KrauseFx/snapshot".red
+ Helper.log.warn "Please follow the migration guide: https://github.com/fastlane/snapshot/blob/master/MigrationGuide.md".red
+ Helper.log.warn "And read the updated documentation: https://github.com/fastlane/snapshot".red
sleep 3 # to be sure the user sees this, as compiling clears the screen
end
verify_helper_is_current
@@ -30,12 +30,11 @@
launch_arguments_set.each do |launch_arguments|
Snapshot.config[:languages].each do |language|
results[device] ||= {}
begin
- launch(language, device, launch_arguments)
- results[device][language] = true
+ results[device][language] = launch(language, device, launch_arguments)
rescue => ex
Helper.log.error ex # we should to show right here as well
Helper.log.error "Backtrace:\n\t#{ex.backtrace.join("\n\t")}"
errors << ex
results[device][language] = false
@@ -136,10 +135,10 @@
raise "Too many errors... no more retries...".red
end
end)
raw_output = File.read(TestCommandGenerator.xcodebuild_log_path)
- Collector.fetch_screenshots(raw_output, language, device_type, launch_arguments.first)
+ return Collector.fetch_screenshots(raw_output, language, device_type, launch_arguments.first)
end
def uninstall_app(device_type)
Helper.log.debug "Uninstalling app '#{Snapshot.config[:app_identifier]}' from #{device_type}..."
Snapshot.config[:app_identifier] ||= ask("App Identifier: ")