aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>2021-07-14 16:08:26 +0000
committerGitHub <noreply@github.com>2021-07-14 16:08:26 +0000
commit19c65fd786c83b092f1b92c001b8a1eeccbbb690 (patch)
tree12470f77c026b5c7e871b740195c7d5efb37fe0f
parent0e264092e35ac02ad68d5d91424ecba5397daa41 (diff)
downloadgoogle-auth-library-python-19c65fd786c83b092f1b92c001b8a1eeccbbb690.tar.gz
build(python): exit with success status if no samples found (#802)
Source-Link: https://github.com/googleapis/synthtool/commit/53ea3896a52f87c758e79b5a19fa338c83925a98 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:e1793a23ae0ee9aafb2e3a53b564a351f74790dbe3c2d75f8fc3b8c43e5c036c
-rw-r--r--.github/.OwlBot.lock.yaml2
-rwxr-xr-x.kokoro/test-samples-impl.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 0954585..a5d3697 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
docker:
image: gcr.io/repo-automation-bots/owlbot-python:latest
- digest: sha256:df50e8d462f86d6bcb42f27ecad55bb12c404f1c65de9c6fe4c4d25120080bd6
+ digest: sha256:e1793a23ae0ee9aafb2e3a53b564a351f74790dbe3c2d75f8fc3b8c43e5c036c
diff --git a/.kokoro/test-samples-impl.sh b/.kokoro/test-samples-impl.sh
index cf5de74..311a8d5 100755
--- a/.kokoro/test-samples-impl.sh
+++ b/.kokoro/test-samples-impl.sh
@@ -20,9 +20,9 @@ set -eo pipefail
# Enables `**` to include files nested inside sub-folders
shopt -s globstar
-# Exit early if samples directory doesn't exist
-if [ ! -d "./samples" ]; then
- echo "No tests run. `./samples` not found"
+# Exit early if samples don't exist
+if ! find samples -name 'requirements.txt' | grep -q .; then
+ echo "No tests run. './samples/**/requirements.txt' not found"
exit 0
fi