mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix path to the coverage folder for e2e tests.
This commit is contained in:
12
test.sh
12
test.sh
@@ -325,14 +325,14 @@ function cov_pass {
|
||||
log_callout "[$(date)] Collecting coverage from e2e tests ..."
|
||||
# We don't pass 'gocov_build_flags' nor 'pkg_to_coverprofileflag' here,
|
||||
# as the coverage is collected from the ./bin/etcd_test & ./bin/etcdctl_test internally spawned.
|
||||
mkdir -p "${COVERDIR}/e2e"
|
||||
COVERDIR="${COVERDIR}/e2e" run_for_module "tests" go_test "./e2e/..." "keep_going" : -tags=cov -timeout 30m "$@" || failed="$failed tests_e2e"
|
||||
split_dir "${COVERDIR}/e2e" 10
|
||||
mkdir -p "${coverdir}/e2e"
|
||||
COVERDIR="${coverdir}/e2e" run_for_module "tests" go_test "./e2e/..." "keep_going" : -tags=cov -timeout 30m "$@" || failed="$failed tests_e2e"
|
||||
split_dir "${coverdir}/e2e" 10
|
||||
|
||||
log_callout "[$(date)] Collecting coverage from e2e tests with proxy ..."
|
||||
mkdir -p "${COVERDIR}/e2e_proxy"
|
||||
COVERDIR="${COVERDIR}/e2e_proxy" run_for_module "tests" go_test "./e2e/..." "keep_going" : -tags="cov cluster_proxy" -timeout 30m "$@" || failed="$failed tests_e2e_proxy"
|
||||
split_dir "${COVERDIR}/e2e_proxy" 10
|
||||
mkdir -p "${coverdir}/e2e_proxy"
|
||||
COVERDIR="${coverdir}/e2e_proxy" run_for_module "tests" go_test "./e2e/..." "keep_going" : -tags="cov cluster_proxy" -timeout 30m "$@" || failed="$failed tests_e2e_proxy"
|
||||
split_dir "${coverdir}/e2e_proxy" 10
|
||||
|
||||
local cover_out_file="${coverdir}/all.coverprofile"
|
||||
merge_cov "${coverdir}"
|
||||
|
||||
Reference in New Issue
Block a user