Skip to content

Commit 7789975

Browse files
build(python): samples tests should pass if no samples exist (#13)
Source-Author: Daniel Sanche <[email protected]> Source-Date: Wed Oct 14 08:00:06 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 477764cc4ee6db346d3febef2bb1ea0abf27de52 Source-Link: googleapis/synthtool@477764c
1 parent 8012419 commit 7789975

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/google-cloud-video-transcoder/.kokoro/test-samples.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
2828
git checkout $LATEST_RELEASE
2929
fi
3030

31+
# Exit early if samples directory doesn't exist
32+
if [ ! -d "./samples" ]; then
33+
echo "No tests run. `./samples` not found"
34+
exit 0
35+
fi
36+
3137
# Disable buffering, so that the logs stream through.
3238
export PYTHONUNBUFFERED=1
3339

@@ -101,4 +107,4 @@ cd "$ROOT"
101107
# Workaround for Kokoro permissions issue: delete secrets
102108
rm testing/{test-env.sh,client-secrets.json,service-account.json}
103109

104-
exit "$RTN"
110+
exit "$RTN"

packages/google-cloud-video-transcoder/synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/python-video-transcoder.git",
7-
"sha": "845f1e371cc45040c882b725e12375430260e45a"
7+
"sha": "89682e93952608ceb4ac7aa096d6b53e26fc6b93"
88
}
99
},
1010
{
@@ -19,14 +19,14 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4"
22+
"sha": "477764cc4ee6db346d3febef2bb1ea0abf27de52"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4"
29+
"sha": "477764cc4ee6db346d3febef2bb1ea0abf27de52"
3030
}
3131
}
3232
],

0 commit comments

Comments
 (0)