Suppress "unbound variable" error. (#14424)

Without this change, you'd see this error:

```
./run-tests.sh: line 49: LAMBDA_TESTS_ENABLED: unbound variable
./run-tests.sh: line 49: LAMBDA_TESTS_ENABLED: unbound variable
```
This commit is contained in:
Luke Kysow 2022-08-31 13:06:35 -07:00 committed by GitHub
parent a80e0bcd00
commit 095764a482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ function network_snippet {
} }
function aws_snippet { function aws_snippet {
if [[ ! -z "$LAMBDA_TESTS_ENABLED" ]]; then LAMBDA_TESTS_ENABLED=${LAMBDA_TESTS_ENABLED:-false}
if [ "$LAMBDA_TESTS_ENABLED" != false ]; then
local snippet="" local snippet=""
# The Lambda integration cases assume that a Lambda function exists in $AWS_REGION with an ARN of $AWS_LAMBDA_ARN. # The Lambda integration cases assume that a Lambda function exists in $AWS_REGION with an ARN of $AWS_LAMBDA_ARN.