<xsl:template name="run-tests-unix">
<xsl:param name="options"/>
-<normalize-space>
-cd tests &&
-./test <xsl:value-of select="normalize-space($options)"/> &&
-if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui; fi
-</normalize-space>
+ERR=0
+cd tests
+./test <xsl:value-of select="normalize-space($options)"/> || ERR=$?
+if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui || ERR=$?; fi
+exit $ERR
</xsl:template>
<!--