Don't print double-faults.
/trunk/scripts/functions | 3 3 0 0 +++
1 file changed, 3 insertions(+)
1.1 --- a/scripts/functions Mon Jul 14 15:20:11 2008 +0000
1.2 +++ b/scripts/functions Mon Jul 14 15:22:53 2008 +0000
1.3 @@ -3,8 +3,11 @@
1.4 # Licensed under the GPL v2. See COPYING in the root of this package
1.5
1.6 # Prepare the fault handler
1.7 +CT_IN_FAULT_HANDLER=0
1.8 CT_OnError() {
1.9 ret=$?
1.10 + [ ${CT_IN_FAULT_HANDLER} -ne 0 ] && return 0
1.11 + CT_IN_FAULT_HANDLER=1
1.12 CT_DoLog ERROR "Build failed in step '${CT_STEP_MESSAGE[${CT_STEP_COUNT}]}'"
1.13 for((step=(CT_STEP_COUNT-1); step>1; step--)); do
1.14 CT_DoLog ERROR " called in step '${CT_STEP_MESSAGE[${step}]}'"