mirror of https://github.com/knative/pkg.git
Auto-update dependencies (#939)
Produced via: `dep ensure -update knative.dev/test-infra` /assign n3wscott
This commit is contained in:
parent
9681cde37b
commit
c9679c8353
|
@ -1296,14 +1296,14 @@
|
|||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:052dcbb5c89b1843e0f5130dc9a0e815a89079c0329bc93c86f7d8c8569b8132"
|
||||
digest = "1:c20a6bc69c6e4299afa4e4cb6016451fc751c5bb14025a271f3436f212ae73f7"
|
||||
name = "knative.dev/test-infra"
|
||||
packages = [
|
||||
"scripts",
|
||||
"tools/dep-collector",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "30f1a1f7b77ea46a34091c518b10ceed2c43fb3b"
|
||||
revision = "32d84d399e44c68470d2703a6de633ab0a826d49"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:8730e0150dfb2b7e173890c8b9868e7a273082ef8e39f4940e3506a481cf895c"
|
||||
|
|
|
@ -68,9 +68,7 @@ tests to be executed, in the right order (i.e., build, then unit, then
|
|||
integration tests).
|
||||
|
||||
Use the flags `--build-tests`, `--unit-tests` and `--integration-tests` to run a
|
||||
specific set of tests. The flag `--emit-metrics` is used to emit metrics when
|
||||
running the tests, and is automatically handled by the default action for
|
||||
integration tests (see above).
|
||||
specific set of tests.
|
||||
|
||||
To run a specific program as a test, use the `--run-test` flag, and provide the
|
||||
program as the argument. If arguments are required for the program, pass
|
||||
|
@ -167,12 +165,7 @@ This is a helper script for Knative E2E test scripts. To use it:
|
|||
(or `report_go_test()` if you need a more fine-grained control) and call
|
||||
`fail_test()` or `success()` if any of them failed. The environment variable
|
||||
`KO_DOCKER_REPO` and `E2E_PROJECT_ID` will be set according to the test
|
||||
cluster. You can also use the following boolean (0 is false, 1 is true)
|
||||
environment variables for the logic:
|
||||
|
||||
- `EMIT_METRICS`: true if `--emit-metrics` was passed.
|
||||
|
||||
All environment variables above are marked read-only.
|
||||
cluster.
|
||||
|
||||
**Notes:**
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ function teardown_test_resources() {
|
|||
function go_test_e2e() {
|
||||
local test_options=""
|
||||
local go_options=""
|
||||
(( EMIT_METRICS )) && test_options="-emitmetrics"
|
||||
[[ ! " $@" == *" -tags="* ]] && go_options="-tags=e2e"
|
||||
report_go_test -v -race -count=1 ${go_options} $@ ${test_options}
|
||||
}
|
||||
|
@ -228,7 +227,6 @@ function create_test_cluster() {
|
|||
echo "Test script is ${E2E_SCRIPT}"
|
||||
# Set arguments for this script again
|
||||
local test_cmd_args="--run-tests"
|
||||
(( EMIT_METRICS )) && test_cmd_args+=" --emit-metrics"
|
||||
(( SKIP_KNATIVE_SETUP )) && test_cmd_args+=" --skip-knative-setup"
|
||||
[[ -n "${GCP_PROJECT}" ]] && test_cmd_args+=" --gcp-project ${GCP_PROJECT}"
|
||||
[[ -n "${E2E_SCRIPT_CUSTOM_FLAGS[@]}" ]] && test_cmd_args+=" ${E2E_SCRIPT_CUSTOM_FLAGS[@]}"
|
||||
|
@ -419,7 +417,6 @@ function fail_test() {
|
|||
}
|
||||
|
||||
RUN_TESTS=0
|
||||
EMIT_METRICS=0
|
||||
SKIP_KNATIVE_SETUP=0
|
||||
SKIP_ISTIO_ADDON=0
|
||||
GCP_PROJECT=""
|
||||
|
@ -455,7 +452,6 @@ function initialize() {
|
|||
# Try parsing flag as a standard one.
|
||||
case ${parameter} in
|
||||
--run-tests) RUN_TESTS=1 ;;
|
||||
--emit-metrics) EMIT_METRICS=1 ;;
|
||||
--skip-knative-setup) SKIP_KNATIVE_SETUP=1 ;;
|
||||
--skip-istio-addon) SKIP_ISTIO_ADDON=1 ;;
|
||||
*)
|
||||
|
@ -486,7 +482,6 @@ function initialize() {
|
|||
(( SKIP_ISTIO_ADDON )) || GKE_ADDONS="--addons=Istio"
|
||||
|
||||
readonly RUN_TESTS
|
||||
readonly EMIT_METRICS
|
||||
readonly GCP_PROJECT
|
||||
readonly IS_BOSKOS
|
||||
readonly EXTRA_CLUSTER_CREATION_FLAGS
|
||||
|
|
|
@ -269,7 +269,6 @@ function run_integration_tests() {
|
|||
function default_integration_test_runner() {
|
||||
local options=""
|
||||
local failed=0
|
||||
(( EMIT_METRICS )) && options="--emit-metrics"
|
||||
for e2e_test in $(find test/ -name e2e-*tests.sh); do
|
||||
echo "Running integration test ${e2e_test}"
|
||||
if ! ${e2e_test} ${options}; then
|
||||
|
@ -283,7 +282,6 @@ function default_integration_test_runner() {
|
|||
RUN_BUILD_TESTS=0
|
||||
RUN_UNIT_TESTS=0
|
||||
RUN_INTEGRATION_TESTS=0
|
||||
EMIT_METRICS=0
|
||||
|
||||
# Process flags and run tests accordingly.
|
||||
function main() {
|
||||
|
@ -335,7 +333,6 @@ function main() {
|
|||
--build-tests) RUN_BUILD_TESTS=1 ;;
|
||||
--unit-tests) RUN_UNIT_TESTS=1 ;;
|
||||
--integration-tests) RUN_INTEGRATION_TESTS=1 ;;
|
||||
--emit-metrics) EMIT_METRICS=1 ;;
|
||||
--all-tests)
|
||||
RUN_BUILD_TESTS=1
|
||||
RUN_UNIT_TESTS=1
|
||||
|
@ -354,7 +351,6 @@ function main() {
|
|||
readonly RUN_BUILD_TESTS
|
||||
readonly RUN_UNIT_TESTS
|
||||
readonly RUN_INTEGRATION_TESTS
|
||||
readonly EMIT_METRICS
|
||||
readonly TEST_TO_RUN
|
||||
|
||||
cd ${REPO_ROOT_DIR}
|
||||
|
|
Loading…
Reference in New Issue