Skip to content

Commit

Permalink
build(python): samples tests should pass if no samples exist (#13)
Browse files Browse the repository at this point in the history
Source-Author: Daniel Sanche <d.sanche14@gmail.com>
Source-Date: Wed Oct 14 08:00:06 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: 477764cc4ee6db346d3febef2bb1ea0abf27de52
Source-Link: googleapis/synthtool@477764c
  • Loading branch information
yoshi-automation authored Nov 14, 2020
1 parent 8012419 commit 7789975
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
git checkout $LATEST_RELEASE
fi

# Exit early if samples directory doesn't exist
if [ ! -d "./samples" ]; then
echo "No tests run. `./samples` not found"
exit 0
fi

# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1

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

exit "$RTN"
exit "$RTN"
6 changes: 3 additions & 3 deletions packages/google-cloud-video-transcoder/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-video-transcoder.git",
"sha": "845f1e371cc45040c882b725e12375430260e45a"
"sha": "89682e93952608ceb4ac7aa096d6b53e26fc6b93"
}
},
{
Expand All @@ -19,14 +19,14 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4"
"sha": "477764cc4ee6db346d3febef2bb1ea0abf27de52"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4"
"sha": "477764cc4ee6db346d3febef2bb1ea0abf27de52"
}
}
],
Expand Down

0 comments on commit 7789975

Please sign in to comment.