mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 15:18:09 +01:00
[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:
co-authored by
Selis
Kashargul
parent
272afa33c8
commit
5a62077f2c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user