Skip to content

Commit 9f8a797

Browse files
authored
Merge pull request #1068 from k8s-infra-cherrypick-robot/cherry-pick-1054-to-release-1.19
[release-1.19] test: don't return error in blob_log.sh
2 parents f6ac74d + a71f1a1 commit 9f8a797

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ blob-darwin:
114114

115115
.PHONY: container
116116
container: blob
117-
docker build -t $(CSI_IMAGE_TAG) --output=type=docker -f ./pkg/blobplugin/Dockerfile .
117+
docker build -t $(CSI_IMAGE_TAG) --build-arg ARCH=$(ARCH) --output=type=docker -f ./pkg/blobplugin/Dockerfile .
118118

119119
.PHONY: container-linux
120120
container-linux:

test/utils/blob_log.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ if [[ "$#" -gt 0 ]]; then
2323
DRIVER=$1
2424
fi
2525

26+
cleanup() {
27+
echo "hit unexpected error during log print, exit 0"
28+
exit 0
29+
}
30+
31+
trap cleanup ERR
32+
2633
echo "print out all nodes status ..."
2734
kubectl get nodes -o wide
2835
echo "======================================================================================"

0 commit comments

Comments
 (0)