summaryrefslogtreecommitdiff
path: root/testing/gitano-test-tool.in
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gitano-test-tool.in')
-rw-r--r--testing/gitano-test-tool.in14
1 files changed, 3 insertions, 11 deletions
diff --git a/testing/gitano-test-tool.in b/testing/gitano-test-tool.in
index ff386fd..c931b6d 100644
--- a/testing/gitano-test-tool.in
+++ b/testing/gitano-test-tool.in
@@ -46,17 +46,9 @@ local function run_program(t)
if how == -1 then
unix_assert(how, why)
end
- if how ~= "exit" then
- for i = 1, #t do
- print(t[i])
- end
- error("BLEH: " .. how .. ":" .. tostring(why))
- end
- if why ~= 0 then
- for i = 1, #t do
- print(t[i])
- end
- error("BLEH: " .. how .. ":" .. tostring(why))
+ if not (how == "exit" and why == 0) then
+ io.stderr:write(how .. ":" .. tostring(why).."\n")
+ os.exit(1)
end
end