aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/test/collect_coverage.sh
diff options
context:
space:
mode:
authorGravatar Siddhartha Bagaria <sbagaria@grailbio.com>2018-05-17 03:10:25 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-17 03:12:09 -0700
commit64a461d668d9ac056be971523ef50f1ba8c4f5b9 (patch)
treeae251e6a310beab53c0ebf3dc514535ca71f4136 /tools/test/collect_coverage.sh
parentbdcdd5b9f0a34784d9a5c1df2d7ea57a04a31b23 (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-xtools/test/collect_coverage.sh2
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