Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail external-e2e prow job on test failure #810

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/external-e2e/manifest/testdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DriverInfo:
block: true
fsGroup: true
topology: true
controllerExpansion: true
controllerExpansion: false
nodeExpansion: false
volumeLimits: true
snapshotDataSource: false
snapshotDataSource: false
12 changes: 9 additions & 3 deletions test/external-e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

# Ensure that we have the desired version of the ginkgo test runner.

set -xe
andyzhangx marked this conversation as resolved.
Show resolved Hide resolved

PROJECT_ROOT=$(git rev-parse --show-toplevel)

install_ginkgo () {
Expand All @@ -35,13 +37,17 @@ setup_e2e_binaries() {
make create-metrics-svc
}

print_logs() {
echo "print out driver logs ..."
bash ./test/utils/azuredisk_log.sh
}


install_ginkgo
setup_e2e_binaries
trap print_logs EXIT

ginkgo -p --progress --v -focus='External.Storage.*disk.csi.azure.com' \
-skip='\[Disruptive\]|\[Slow\]|\[Feature:VolumeSnapshotDataSource\]' kubernetes/test/bin/e2e.test -- \
-storage.testdriver=$PROJECT_ROOT/test/external-e2e/manifest/testdriver.yaml \
--kubeconfig=$KUBECONFIG

echo "print out driver logs ..."
bash ./test/utils/azuredisk_log.sh