From 6805d96bf69d9e95c9137fe129bc5d81e35f6309 Mon Sep 17 00:00:00 2001 From: Mark Hillebrand Date: Fri, 27 Sep 2019 11:58:39 +0200 Subject: [PATCH] samples/python/console: add missing doc string, fix the menu (#386) * samples/python/console/speech_synthesis_sample.py: add doc string * fix run-gradle.sh --- ci/run-gradle.sh | 16 +++++++++++++++- .../python/console/speech_synthesis_sample.py | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ci/run-gradle.sh b/ci/run-gradle.sh index 6edc70d37..3c219760c 100755 --- a/ci/run-gradle.sh +++ b/ci/run-gradle.sh @@ -16,7 +16,21 @@ echo $PACKAGE_PATH set -e -x -o pipefail -readarray -t PROJECTS < <(find . -name gradlew.bat -printf '%h\n') +# We were using process substitution before for find/readarray, which started failing. +# Possibly related to https://github.com/git-for-windows/git/issues/2291, although +# we could not correlate with the software running on the hosted agents. +PROJECTS_FILE=$(mktemp proj-XXXXXX) +on_exit() { + local exit_code=$? + rm -f "$PROJECTS_FILE" + printf "Exiting with exit code %s\n" $exit_code + exit $exit_code +} +trap on_exit EXIT + +find . -name gradlew.bat -printf '%h\n' > "$PROJECTS_FILE" + +readarray -t PROJECTS < "$PROJECTS_FILE" for dir in "${PROJECTS[@]}"; do echo $dir diff --git a/samples/python/console/speech_synthesis_sample.py b/samples/python/console/speech_synthesis_sample.py index 832a8cb68..417bc0f80 100644 --- a/samples/python/console/speech_synthesis_sample.py +++ b/samples/python/console/speech_synthesis_sample.py @@ -3,6 +3,9 @@ # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root for full license information. +""" +Speech synthesis samples for the Microsoft Cognitive Services Speech SDK +""" try: import azure.cognitiveservices.speech as speechsdk