Skip to content

Commit

Permalink
yea
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 7, 2024
1 parent f2d6532 commit 9c3dc4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/unit_tests/unit_test.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ GLOBAL_VAR(test_log)
var/list/log_entry = list()
var/list/fail_reasons = test.fail_reasons

var/test_output_desc = "[test_path]"
var/message = ""

log_world("::group::[test_path]")
for(var/reasonID in 1 to LAZYLEN(fail_reasons))
var/text = fail_reasons[reasonID][1]
Expand All @@ -129,7 +132,7 @@ GLOBAL_VAR(test_log)

log_world("::endgroup::")

if (!test.succeeded && !skip_test)
if (!test.succeeded)
log_world("::error::[TEST_OUTPUT_RED("FAIL")] [test_output_desc]")

var/final_status = test.succeeded ? UNIT_TEST_PASSED : UNIT_TEST_FAILED
Expand Down

0 comments on commit 9c3dc4f

Please sign in to comment.