Skip to content

Commit 27a2ac2

Browse files
committed
blah
1 parent f2e2f07 commit 27a2ac2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

staging/src/k8s.io/code-generator/examples/hack/verify-codegen.sh

+10
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ else
4444
fi
4545

4646
# smoke test
47+
print_stack_trace() {
48+
echo "*************************************************************************************"
49+
echo "Stack trace (most recent call first):"
50+
for ((i=${#FUNCNAME[@]}-1; i>=0; i--)); do
51+
echo " [${i}] ${FUNCNAME[i]}() called at ${BASH_SOURCE[i+1]}:${BASH_LINENO[i]}"
52+
done
53+
}
54+
55+
print_stack_trace
56+
4757
echo "Smoke testing examples by compiling..."
4858
pushd "${SCRIPT_ROOT}"
4959
go build "k8s.io/code-generator/examples/crd/..."

0 commit comments

Comments
 (0)