Changeset 594ff3d


Ignore:
Timestamp:
06/15/2022 01:10:52 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
875366f
Parents:
29615d9
Message:

Remove the "Abort on testsuite failure" config (4)

Remove the bomb-testsuite param in lfs.xsl, with the associated
code.
This implies not passing this param in func_book_parser.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r29615d9 r594ff3d  
    2828  -->
    2929  <xsl:param name="testsuite" select="1"/>
    30 
    31   <!-- Bomb on test suites failures?
    32        n = no, I want to build the full system and review the logs
    33        y = yes, bomb at the first test suite failure to can review the build dir
    34   -->
    35   <xsl:param name="bomb-testsuite" select="'n'"/>
    3630
    3731  <!-- Install non wide character ncurses 5? -->
     
    11221116        </xsl:if>
    11231117        <xsl:choose>
    1124           <xsl:when test="$bomb-testsuite = 'n'">
    1125             <xsl:choose>
    1126               <xsl:when test="contains(string(), 'make -k')">
    1127                 <xsl:value-of select="$instructions"/>
    1128                 <xsl:if test="not($eof-seen)">
    1129                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
    1130                 </xsl:if>
    1131                 <xsl:text>&#xA;</xsl:text>
    1132               </xsl:when>
    1133               <xsl:when test="contains($instructions, 'make')">
    1134                 <xsl:value-of select="substring-before($instructions, 'make')"/>
    1135                 <xsl:text>make -k</xsl:text>
    1136                 <xsl:value-of select="substring-after($instructions, 'make')"/>
    1137                 <xsl:if test="not($eof-seen)">
    1138                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
    1139                 </xsl:if>
    1140                 <xsl:text>&#xA;</xsl:text>
    1141               </xsl:when>
    1142               <xsl:otherwise>
    1143                 <xsl:value-of select="$instructions"/>
    1144                 <xsl:if
    1145                   test="not(contains($instructions, '&gt;&gt;')) and
    1146                         not($eof-seen) and
    1147                         substring($instructions,
    1148                                   string-length($instructions)) != '\'">
    1149                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
    1150                 </xsl:if>
    1151                 <xsl:text>&#xA;</xsl:text>
    1152               </xsl:otherwise>
    1153             </xsl:choose>
     1118          <xsl:when test="contains(string(), 'make -k')">
     1119            <xsl:value-of select="$instructions"/>
     1120            <xsl:if test="not($eof-seen)">
     1121              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     1122            </xsl:if>
     1123            <xsl:text>&#xA;</xsl:text>
     1124          </xsl:when>
     1125          <xsl:when test="contains($instructions, 'make')">
     1126            <xsl:value-of select="substring-before($instructions, 'make')"/>
     1127            <xsl:text>make -k</xsl:text>
     1128            <xsl:value-of select="substring-after($instructions, 'make')"/>
     1129            <xsl:if test="not($eof-seen)">
     1130              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     1131            </xsl:if>
     1132            <xsl:text>&#xA;</xsl:text>
    11541133          </xsl:when>
    11551134          <xsl:otherwise>
    1156             <!-- bomb-testsuite != 'n'-->
    1157             <xsl:choose>
    1158               <xsl:when test="contains($instructions, 'make -k')">
    1159                 <xsl:value-of select="$instructions"/>
    1160                 <xsl:if test="not($eof-seen)">
    1161                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
    1162                 </xsl:if>
    1163                 <xsl:text>&#xA;</xsl:text>
    1164               </xsl:when>
    1165               <xsl:otherwise>
    1166                 <xsl:value-of select="$instructions"/>
    1167                 <xsl:if test="not(contains($instructions, '&gt;&gt;')) and
    1168                         not($eof-seen) and
    1169                         substring($instructions,
    1170                                   string-length($instructions)) != '\'">
    1171                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
    1172                 </xsl:if>
    1173                 <xsl:text>&#xA;</xsl:text>
    1174               </xsl:otherwise>
    1175             </xsl:choose>
    1176           </xsl:otherwise> <!-- end not bomb-test=n -->
     1135            <xsl:value-of select="$instructions"/>
     1136            <xsl:if
     1137              test="not(contains($instructions, '&gt;&gt;')) and
     1138                    not($eof-seen) and
     1139                    substring($instructions,
     1140                              string-length($instructions)) != '\'">
     1141              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     1142            </xsl:if>
     1143            <xsl:text>&#xA;</xsl:text>
     1144          </xsl:otherwise>
    11771145        </xsl:choose>
    11781146      </xsl:otherwise>
  • common/libs/func_book_parser

    r29615d9 r594ff3d  
    7878  xsltproc --nonet                                      \
    7979           --stringparam testsuite      "$TEST"         \
    80            --stringparam bomb-testsuite "$BOMB_TEST"    \
    8180           --stringparam ncurses5       "$NCURSES5"     \
    8281           --stringparam strip          "$STRIP"        \
Note: See TracChangeset for help on using the changeset viewer.