Skip to content

Commit

Permalink
Fix code coverage with multiple directories
Browse files Browse the repository at this point in the history
This fixes an issue where there are multiple matches of `*.framework`
which breaks the command using this variable
  • Loading branch information
keith committed Mar 23, 2016
1 parent 994a0a7 commit f86bc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -e

profdata="$1"
coverage_dir="$2"
framework=$(find "$coverage_dir" -name "*.framework")
framework=$(find "$coverage_dir" -name "*.framework" | head -1)
xcrun llvm-cov show -instr-profile "$profdata" "$framework/Mapper" > "coverage.txt"

0 comments on commit f86bc62

Please sign in to comment.