Don't print double-faults.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 14 15:22:53 2008 +0000 (2008-07-14)
changeset 6583e590fb8f1a6
parent 657 6eb39aec2d07
child 659 5fb8f5a33f74
Don't print double-faults.

/trunk/scripts/functions | 3 3 0 0 +++
1 file changed, 3 insertions(+)
scripts/functions
     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}]}'"