mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Unsilence log_mapping messages in unit tests that don't meet /datum/unit_test/maptest_log_mapping criteria (#96780)
This commit is contained in:
@@ -5,16 +5,5 @@
|
||||
priority = TEST_PRE
|
||||
|
||||
/datum/unit_test/maptest_log_mapping/Run()
|
||||
var/static/regex/test_areacoord_regex = regex(@"\(-?\d+,-?\d+,(-?\d+)\)")
|
||||
|
||||
for(var/log_entry in GLOB.unit_test_mapping_logs)
|
||||
// Only fail if AREACOORD was conveyed, and it's a station or mining z-level.
|
||||
// This is due to mapping errors don't have coords being impossible to diagnose as a unit test,
|
||||
// and various ruins frequently intentionally doing non-standard things.
|
||||
if(!test_areacoord_regex.Find(log_entry))
|
||||
continue
|
||||
var/z = text2num(test_areacoord_regex.group[1])
|
||||
if(!is_station_level(z) && !is_mining_level(z))
|
||||
continue
|
||||
|
||||
TEST_FAIL(log_entry)
|
||||
|
||||
Reference in New Issue
Block a user