Skip to content

Commit

Permalink
Fix path for instrumented-tests result file
Browse files Browse the repository at this point in the history
This should fix annotating test failures.
  • Loading branch information
wzieba committed Aug 1, 2024
1 parent 9616d52 commit 13176ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .buildkite/commands/run-instrumented-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ "$TESTS_EXIT_STATUS" -ne 0 ]]; then
fi

echo "--- 🚦 Report Tests Status"
results_file=$(find "build/instrumented-tests" -type f -name "*.xml" -print -quit)
results_file=$(find "../../build/instrumented-tests" -type f -name "*.xml" -print -quit)

if [[ $BUILDKITE_BRANCH == trunk ]] || [[ $BUILDKITE_BRANCH == release/* ]]; then
annotate_test_failures "$results_file" --slack "build-and-ship"
Expand Down
2 changes: 1 addition & 1 deletion fastlane/lanes/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
sh("buildkite-agent annotation remove --context '#{annotation_ctx}' || true") if is_ci?
rescue
details_url = sh('jq ".[].webLink" ../build/instrumented-tests/matrix_ids.json -r')
message = "Firebase Tests failed. Failure details can be seen [here in Firebase Console](#{details_url})"
message = "#{app} 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
Expand Down

0 comments on commit 13176ae

Please sign in to comment.