#! /bin/sh /usr/share/dpatch/dpatch-run
## return-code.dpatch by Enrico Tassi <gareuselesinge@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: make shake return 1 if fail count > 0
@DPATCH@
diff -urNad trunk~/src/bin/shake trunk/src/bin/shake
--- trunk~/src/bin/shake 2007-12-21 19:07:37.000000000 +0100
+++ trunk/src/bin/shake 2008-03-19 16:48:37.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env lua
+#!/usr/bin/env lua5.1
-------------------------------------------------------------------------------
-- Command line runner for Shake
@@ -97,3 +97,7 @@
else
print("No test files found")
end
+
+if run.results.failed > 0 or run.results.errors > 0 then
+ os.exit(1)
+end