From cd01ef0f7d5be67700456972cf7ef66609d5dea5 Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Thu, 1 Aug 2024 10:40:08 +0200 Subject: [PATCH] Fix Ruby formatting in test.rb --- fastlane/lanes/test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fastlane/lanes/test.rb b/fastlane/lanes/test.rb index 354dd749a8d2..8ff762135f50 100644 --- a/fastlane/lanes/test.rb +++ b/fastlane/lanes/test.rb @@ -19,13 +19,13 @@ annotation_ctx = "firebase-test-#{app}-vanilla-debug" begin - gradle(task: "runFlank#{app.to_s.capitalize}") - sh("buildkite-agent annotation remove --context '#{annotation_ctx}' || true") if is_ci? - rescue - details_url = sh('jq ".[].webLink" ~/WordPress-Android/build/instrumented-tests/matrix_ids.json -r') - message = "Firebase Tests failed. Failure details can be seen [here in Firebase Console](#{details_url})" - sh('buildkite-agent', 'annotate', message, '--style', 'error', '--context', annotation_ctx) if is_ci? - UI.test_failure!(message) + gradle(task: "runFlank#{app.to_s.capitalize}") + sh("buildkite-agent annotation remove --context '#{annotation_ctx}' || true") if is_ci? + rescue + details_url = sh('jq ".[].webLink" ~/WordPress-Android/build/instrumented-tests/matrix_ids.json -r') + message = "Firebase Tests failed. Failure details can be seen [here in Firebase Console](#{details_url})" + sh('buildkite-agent', 'annotate', message, '--style', 'error', '--context', annotation_ctx) if is_ci? + UI.test_failure!(message) end end end