diff options
author | 2018-05-17 03:10:25 -0700 | |
---|---|---|
committer | 2018-05-17 03:12:09 -0700 | |
commit | 64a461d668d9ac056be971523ef50f1ba8c4f5b9 (patch) | |
tree | ae251e6a310beab53c0ebf3dc514535ca71f4136 /tools/test/collect_coverage.sh | |
parent | bdcdd5b9f0a34784d9a5c1df2d7ea57a04a31b23 (diff) |
Portability with BSD stat in collect_coverage.sh
BSD stat does not have --printf option.
Closes #5162.
PiperOrigin-RevId: 196965302
Diffstat (limited to 'tools/test/collect_coverage.sh')
-rwxr-xr-x | tools/test/collect_coverage.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/collect_coverage.sh b/tools/test/collect_coverage.sh index a18edf30c2..58afc82ae4 100755 --- a/tools/test/collect_coverage.sh +++ b/tools/test/collect_coverage.sh @@ -109,7 +109,7 @@ fi cd $ROOT USES_LLVM_COV= -if stat --printf='' "${COVERAGE_DIR}"/*.profraw 2>/dev/null; then +if stat "${COVERAGE_DIR}"/*.profraw >/dev/null 2>&1; then USES_LLVM_COV=1 fi |