Skip to content

Commit a0b368e

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
test: don't return error in azurefile_log.sh
1 parent ae6172a commit a0b368e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/utils/azurefile_log.sh

+7
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)