Skip to content

Commit

Permalink
chore(tests): upgrade environment test script from python3.6 (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche authored Sep 6, 2022
1 parent 781bf85 commit ad38188
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .kokoro/environment_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fi

# make sure submodule is up to date
cd "$PROJECT_ROOT"
git config --global --add safe.directory '*'
git submodule update --init --recursive
cd "${PROJECT_ROOT}/env-tests-logging"

Expand All @@ -48,11 +49,11 @@ gcloud config set compute/zone us-central1-b
gcloud auth configure-docker -q

# Remove old nox
python3.6 -m pip uninstall --yes --quiet nox-automation
python3 -m pip uninstall --yes --quiet nox-automation

# Install nox
python3.6 -m pip install --upgrade --quiet nox
python3.6 -m nox --version
python3 -m pip install --upgrade --quiet nox
python3 -m nox --version

# Install kubectl
if [[ "${ENVIRONMENT}" == "kubernetes" ]]; then
Expand All @@ -70,7 +71,7 @@ echo $ENVCTL_ID

# Run the specified environment test
set +e
python3.6 -m nox --session "tests(language='java', platform='$ENVIRONMENT')"
python3 -m nox --session "tests(language='java', platform='$ENVIRONMENT')"
TEST_STATUS_CODE=$?

# destroy resources
Expand Down

0 comments on commit ad38188

Please sign in to comment.