fix TSamFailedOnly and the output formatting for the mocha-runner
This commit is contained in:
@@ -395,12 +395,6 @@ local function run_command(command, opts)
|
||||
if not results then
|
||||
return
|
||||
end
|
||||
local lines = format_results(results)
|
||||
if #lines == 0 then
|
||||
return
|
||||
end
|
||||
ensure_output_started()
|
||||
append_lines(buf, lines)
|
||||
had_parsed_output = true
|
||||
if options.track_scope then
|
||||
if results.failures_all ~= nil then
|
||||
@@ -409,6 +403,12 @@ local function run_command(command, opts)
|
||||
state.last_scope_failures = results.failures
|
||||
end
|
||||
end
|
||||
local lines = format_results(results)
|
||||
if #lines == 0 then
|
||||
return
|
||||
end
|
||||
ensure_output_started()
|
||||
append_lines(buf, lines)
|
||||
end
|
||||
|
||||
run_cmd(cmd, cwd, {
|
||||
|
||||
Reference in New Issue
Block a user