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

[release-1.26] test: fix external e2e test failure #1812

Merged
merged 2 commits into from
Apr 15, 2023
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
3 changes: 1 addition & 2 deletions test/external-e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ PROJECT_ROOT=$(git rev-parse --show-toplevel)
DRIVER="test"

install_ginkgo () {
apt update -y
apt install -y golang-ginkgo-dev
go install github.com/onsi/ginkgo/ginkgo@v1.14.0
}

setup_e2e_binaries() {
Expand Down
10 changes: 4 additions & 6 deletions test/utils/azuredisk_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ kubectl get pods -n${NS} -l${LABEL} \
# | awk 'NR>1 {print $1}' \
# | xargs -I {} bash -c "echo 'dumping logs for ${NS}/{}' && kubectl logs {} -n${NS}"

echo "print out csi-$DRIVER-node logs ..."
echo "======================================================================================"
LABEL="app=csi-$DRIVER-node"
kubectl get pods -n${NS} -l${LABEL} \
| awk 'NR>1 {print $1}' \
| xargs -I {} bash -c "echo 'dumping logs for ${NS}/{}/${DRIVER}' && kubectl logs {} -c${CONTAINER} -n${NS}"
if [ -n "$TEST_WINDOWS" ]; then
LABEL="app=csi-$DRIVER-node-win"
fi

echo "print out csi-$DRIVER-node-win logs ..."
echo "print out $LABEL logs ..."
echo "======================================================================================"
LABEL="app=csi-$DRIVER-node-win"
kubectl get pods -n${NS} -l${LABEL} \
Expand Down