aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-01-22 16:33:48 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-01-22 17:20:57 +0300
commit6e105a016dccca530e6c20b67af7c57bce7dc960 (patch)
treebb03553f85d52335f7e8778e3061a68921683984
parent6ee15a2e28391bc6c3db3750ea13f2739c952530 (diff)
downloadydb-6e105a016dccca530e6c20b67af7c57bce7dc960.tar.gz
Intermediate changes
commit_hash:560152267f9633ed82312f513d49b6d343369802
-rwxr-xr-xyql/essentials/core/type_ann/type-ann-coverage.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/yql/essentials/core/type_ann/type-ann-coverage.sh b/yql/essentials/core/type_ann/type-ann-coverage.sh
index 0858a7b4e4..35cf18ce3b 100755
--- a/yql/essentials/core/type_ann/type-ann-coverage.sh
+++ b/yql/essentials/core/type_ann/type-ann-coverage.sh
@@ -6,11 +6,11 @@
set -eu
ARC_ROOT=$(arc rev-parse --show-toplevel)
-REPORT_ROOT=$(mktemp -p $TMPDIR -d yql-essentials-core-type_ann-coverage-XXXXXXX)
+REPORT_ROOT=$(mktemp --tmpdir -d yql-essentials-core-type_ann-coverage-XXXXXXX)
# Save the list with uncovered callbacks into the file, that is
# given by the first parameter of this script; otherwise, save
# the list into the temporary file.
-UNCOVERED_FILE=${1:-$(mktemp -p $TMPDIR yql-essentials-core-type_ann-uncovered-XXXXXXX.list)}
+UNCOVERED_FILE=${1:-$(mktemp --tmpdir yql-essentials-core-type_ann-uncovered-XXXXXXX.list)}
# Run the command to collect code coverage over the sources in
# /yql/essentials/core/type_ann by the minirun test suite.
@@ -46,3 +46,5 @@ grep -oP "$UNCOVERED_ANCHOR$CALLBACK_PREFIX(\w+)$CALLBACK_SUFFIX" \
rm -rf $REPORT_ROOT
echo "The list of the uncovered functions: $UNCOVERED_FILE"
+# Make script fail if uncovered list is not empty.
+test ! -s $UNCOVERED_FILE