Make sure testsuite returns non-0 exit code on failure; make Travis tests less verbose
[plcapi.git] / test / testsuite.php
index 4640dae..39874ce 100644 (file)
@@ -1540,6 +1540,10 @@ Proxy Server: <input name="PROXY" size="30" value="<?php echo isset($PROXY) ? ht
 </form>
 </div>
 <?php
-echo $result->toHTML()."\n</body>\n</html>\n";
+    echo $result->toHTML()."\n</body>\n</html>\n";
+}
+else
+{
+    exit($result->failureCount());
 }
 ?>
\ No newline at end of file