snapshot/lib/snapshot/test_command_generator.rb in fastlane-2.148.1 vs snapshot/lib/snapshot/test_command_generator.rb in fastlane-2.149.0
- old
+ new
@@ -14,23 +14,28 @@
parts += options(language, locale)
parts += destination(devices)
parts += build_settings
parts += actions
parts += suffix
- parts += pipe(language: language, locale: locale, log_path: log_path)
+ parts += pipe(log_path: log_path)
return parts
end
- def pipe(language: nil, locale: nil, log_path: nil)
+ def pipe(log_path: nil)
tee_command = ['tee']
tee_command << '-a' if log_path && File.exist?(log_path)
tee_command << log_path.shellescape if log_path
+ pipe = ["| #{tee_command.join(' ')}"]
+ if Snapshot.config[:disable_xcpretty]
+ return pipe
+ end
+
xcpretty = "xcpretty #{Snapshot.config[:xcpretty_args]}"
xcpretty << "--no-color" if Helper.colors_disabled?
- return ["| #{tee_command.join(' ')} | #{xcpretty}"]
+ return pipe << "| #{xcpretty}"
end
def destination(devices)
unless verify_devices_share_os(devices)
UI.user_error!('All devices provided to snapshot should run the same operating system')