Skip to content

Commit 53ea389

Browse files
authored
build(python): exit with success status if no samples found (#1153)
1 parent 959d4f8 commit 53ea389

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

synthtool/gcp/templates/python_library/.kokoro/test-samples-impl.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ set -eo pipefail
2020
# Enables `**` to include files nested inside sub-folders
2121
shopt -s globstar
2222

23-
# Exit early if samples directory doesn't exist
24-
if [ ! -d "./samples" ]; then
25-
echo "No tests run. `./samples` not found"
23+
# Exit early if samples don't exist
24+
if ! find samples -name 'requirements.txt' | grep -q .; then
25+
echo "No tests run. './samples/**/requirements.txt' not found"
2626
exit 0
2727
fi
2828

0 commit comments

Comments
 (0)