This commit is contained in:
Kartik K. Agaram 2023-01-23 20:12:23 -08:00
parent 26652810f9
commit 2f1ec093ba
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ function record_error_with_heuristic_location(test_name, err)
end
-- Test_errors will be a table by test name
function record_error_with_stack_trace(test_name, err)
function record_error_by_test(test_name, err)
local err_without_line_number = err:gsub('^[^:]*:[^:]*: ', '')
Test_errors[test_name] = debug.traceback(err_without_line_number)
end

View File

@ -281,7 +281,7 @@ function live.run(buf)
-- run all tests
local globals = live.shallow_copy_all_globals()
Test_errors = {}
App.run_tests(record_error_with_stack_trace)
App.run_tests(record_error_by_test)
live.send_to_driver(json.encode(Test_errors))
live.restore_all_globals(globals)
end