From 22624284a2d10d537b27ca9ddba7bf36098e9f63 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 13 Jul 2015 22:50:04 +0200 Subject: [PATCH] tests/_runner.lua: use xpcall+traceback with step error handler --- tests/_runner.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/_runner.lua b/tests/_runner.lua index adfb2d893..c846a9223 100644 --- a/tests/_runner.lua +++ b/tests/_runner.lua @@ -29,7 +29,9 @@ runner.run_steps = function(steps) local step_as_string = step..'/'..#steps..' (@'..step_count..')' -- Call the current step's function. - local success, result = pcall(steps[step], step_count) + local success, result = xpcall(function() + return steps[step](step_count) + end, debug.traceback) if not success then io.stderr:write('Error: running function for step '