[MIRROR] JSON Logging Refactor (#11623)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-14 20:05:26 +02:00
committed by GitHub
co-authored by Selis Kashargul
parent 272afa33c8
commit 5a62077f2c
425 changed files with 4081 additions and 2568 deletions
+3 -6
View File
@@ -138,15 +138,13 @@ GLOBAL_VAR_INIT(focused_tests, focused_tests())
if (fexists(filename))
var/data_filename = "data/screenshots/[path_prefix]_[name].png"
fcopy(icon, data_filename)
//log_test("\t[path_prefix]_[name] was found, putting in data/screenshots")
log_unit_test("\t[path_prefix]_[name] was found, putting in data/screenshots")
log_test("\t[path_prefix]_[name] was found, putting in data/screenshots")
else
#ifdef CIBUILDING
// We are runing in real CI, so just pretend it worked and move on
fcopy(icon, "data/screenshots_new/[path_prefix]_[name].png")
//log_test("\t[path_prefix]_[name] was put in data/screenshots_new")
log_unit_test("\t[path_prefix]_[name] was put in data/screenshots_new")
log_test("\t[path_prefix]_[name] was put in data/screenshots_new")
#else
// We are probably running in a local build
fcopy(icon, filename)
@@ -230,8 +228,7 @@ GLOBAL_VAR_INIT(focused_tests, focused_tests())
if(length(log_entry))
message = log_entry.Join("\n")
//log_test(message)
log_unit_test(message)
log_test(message)
test_output_desc += " [duration / 10]s"
if (test.succeeded)