Skip to content

Commit 66f7324

Browse files
committed
Port over part of tgstation/tgstation#76322, which appears to fix data/unit_tests.json not being emitted
work, dang you
1 parent b7c2c9c commit 66f7324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/modules/unit_tests/unit_test.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,12 @@ GLOBAL_VAR_INIT(focused_tests, focused_tests())
353353

354354
var/list/test_results = list()
355355

356+
//Hell code, we're bound to end the round somehow so let's stop if from ending while we work
357+
SSticker.delay_end = TRUE
356358
for(var/unit_path in tests_to_run)
357359
CHECK_TICK //We check tick first because the unit test we run last may be so expensive that checking tick will lock up this loop forever
358360
RunUnitTest(unit_path, test_results)
361+
SSticker.delay_end = FALSE
359362

360363
var/file_name = "data/unit_tests.json"
361364
fdel(file_name)

0 commit comments

Comments
 (0)