Merge pull request #2395 from monopole/checkForProwNotTravis

Check for prow, not travis, in CI test.
This commit is contained in:
Jeff Regan
2020-04-21 21:19:45 -07:00
committed by GitHub
2 changed files with 8 additions and 10 deletions

View File

@@ -14,16 +14,14 @@ set -o pipefail
rcAccumulator=0
# hack. We used to run test on travis, and disable certain tests
# when running on travis. Now we run on Prow, so look for that.
# https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md
# TODO: Make the code ignorant of the CI environment "brand name".
# brand name of the CI environment (replace "travis" and "prow" with "CI_env"
# or something).
TRAVIS=$PROW_JOB_ID
function onLinuxAndNotOnTravis {
[[ ("linux" == "$(go env GOOS)") && (-z ${TRAVIS+x}) ]] && return
# TODO: Make the code ignorant of the CI environment "brand name".
# We used to run CI tests on travis, and disabled certain tests
# when running there. Now we run on Prow, so look for that.
# https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md
# Should eschew using the brand name of the CI environment
# (replace "travis" with "CI_env" or something - not just switch to "prow").
[[ ("linux" == "$(go env GOOS)") && (-z ${$PROW_JOB_ID+x}) ]] && return
false
}

View File

@@ -14,7 +14,7 @@ import (
kusttest_test "sigs.k8s.io/kustomize/api/testutils/kusttest"
)
const expectedResources=`
const expectedResources = `
apiVersion: v1
data:
rcon-password: Q0hBTkdFTUUh