Skip to content

Commit

Permalink
Merge pull request #2580 from bskiba/fix-e2e
Browse files Browse the repository at this point in the history
Sync e2e_test file with k/k master
  • Loading branch information
k8s-ci-robot authored Nov 27, 2019
2 parents fedebf7 + 40aa850 commit 74c9229
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions vertical-pod-autoscaler/e2e/v1/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import (
_ "k8s.io/kubernetes/test/e2e/lifecycle/bootstrap"
_ "k8s.io/kubernetes/test/e2e/network"
_ "k8s.io/kubernetes/test/e2e/node"
_ "k8s.io/kubernetes/test/e2e/scalability"
_ "k8s.io/kubernetes/test/e2e/scheduling"
_ "k8s.io/kubernetes/test/e2e/servicecatalog"
_ "k8s.io/kubernetes/test/e2e/storage"
Expand All @@ -69,7 +68,7 @@ func handleFlags() {
flag.Parse()
}

func init() {
func TestMain(m *testing.M) {
// Register test flags, then parse flags.
handleFlags()

Expand Down Expand Up @@ -105,9 +104,6 @@ func init() {
AssetNames: generated.AssetNames,
})

}

func TestMain(m *testing.M) {
rand.Seed(time.Now().UnixNano())
os.Exit(m.Run())
}
Expand Down
6 changes: 1 addition & 5 deletions vertical-pod-autoscaler/e2e/v1beta2/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import (
_ "k8s.io/kubernetes/test/e2e/lifecycle/bootstrap"
_ "k8s.io/kubernetes/test/e2e/network"
_ "k8s.io/kubernetes/test/e2e/node"
_ "k8s.io/kubernetes/test/e2e/scalability"
_ "k8s.io/kubernetes/test/e2e/scheduling"
_ "k8s.io/kubernetes/test/e2e/servicecatalog"
_ "k8s.io/kubernetes/test/e2e/storage"
Expand All @@ -69,7 +68,7 @@ func handleFlags() {
flag.Parse()
}

func init() {
func TestMain(m *testing.M) {
// Register test flags, then parse flags.
handleFlags()

Expand Down Expand Up @@ -105,9 +104,6 @@ func init() {
AssetNames: generated.AssetNames,
})

}

func TestMain(m *testing.M) {
rand.Seed(time.Now().UnixNano())
os.Exit(m.Run())
}
Expand Down
4 changes: 2 additions & 2 deletions vertical-pod-autoscaler/hack/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ case ${SUITE} in
recommender|updater|admission-controller|actuation|full-vpa)
export KUBECONFIG=$HOME/.kube/config
pushd ${SCRIPT_ROOT}/e2e
go test -mod vendor ./v1beta2/*go -v --args --ginkgo.v=true --ginkgo.focus="\[VPA\] \[${SUITE}\]" --report-dir=/workspace/_artifacts --disable-log-dump
go test -mod vendor ./v1beta2/*go -v --test.timeout=60m --args --ginkgo.v=true --ginkgo.focus="\[VPA\] \[${SUITE}\]" --report-dir=/workspace/_artifacts --disable-log-dump
FIRST_RESULT=$?
go test -mod vendor ./v1/*go -v --args --ginkgo.v=true --ginkgo.focus="\[VPA\] \[${SUITE}\]" --report-dir=/workspace/_artifacts --disable-log-dump
go test -mod vendor ./v1/*go -v --test.timeout=60m --args --ginkgo.v=true --ginkgo.focus="\[VPA\] \[${SUITE}\]" --report-dir=/workspace/_artifacts --disable-log-dump
popd
echo First test result: ${FIRST_RESULT}
if [ $FIRST_RESULT -gt 0 ]; then
Expand Down

0 comments on commit 74c9229

Please sign in to comment.