File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed
instrumentation-genai/opentelemetry-instrumentation-google-genai/tools Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) ; pwd)
17+ set -o pipefail
18+
19+ SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) || exit ; pwd)
1820PROJECT_DIR=$( readlink -f " ${SCRIPT_DIR} /.." )
1921BUILD_DIR=" ${PROJECT_DIR} /.build"
2022BUILD_ENV=" ${BUILD_DIR} /.venv"
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) ; pwd)
17+ set -o pipefail
18+
19+ SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) || exit ; pwd)
1820PROJECT_DIR=$( readlink -f " ${SCRIPT_DIR} /.." )
1921BUILD_DIR=" ${PROJECT_DIR} /.build"
2022LINT_ENV=" ${BUILD_DIR} /.lint-venv"
Original file line number Diff line number Diff line change 3030# Runs the given tox environment, with additional parameters
3131# to provide for more verbose debug output when testing.
3232
33+ set -o pipefail
34+
3335function main() {
3436 local tox_env=" $1 "
3537 tox -e " ${tox_env} " -- -o log_cli_level=debug
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) ; pwd)
17+ set -o pipefail
18+
19+ SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) || exit ; pwd)
1820PROJECT_DIR=$( readlink -f " ${SCRIPT_DIR} /.." )
1921TOP_LEVEL_DIR=$( readlink -f " ${PROJECT_DIR} /../../" )
2022TESTS_DIR=" ${PROJECT_DIR} /tests"
@@ -41,7 +43,7 @@ function main() {
4143 local tox_environments=$( tox -l | grep ' test-instrumentation-google-genai' )
4244 local successful=0
4345 for tox_environment in ${tox_environments} ; do
44- echo " [INFO] Testing environment: ${tox_environmenmt } " >&2
46+ echo " [INFO] Testing environment: ${tox_environment } " >&2
4547 ${SCRIPT_DIR} /test-with-tox.sh " ${tox_environment} " || exit $?
4648 successful=$( expr ${successful} + 1)
4749 done
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) ; pwd)
17+ set -o pipefail
18+
19+ SCRIPT_DIR=$( cd $( dirname " ${BASH_SOURCE:- $0 } " ) || exit ; pwd)
1820PROJECT_DIR=$( readlink -f " ${SCRIPT_DIR} /.." )
1921TESTS_DIR=" ${PROJECT_DIR} /tests"
2022REQUIREMENTS_FILE=" ${TESTS_DIR} /requirements.txt"
You can’t perform that action at this time.
0 commit comments