mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 20:47:28 +01:00
Some debug logging
This commit is contained in:
@@ -15,10 +15,12 @@
|
||||
sleep(50)
|
||||
world.TgsTargetedChatBroadcast("Sample admin-only message", TRUE)
|
||||
|
||||
world.log << "params check"
|
||||
var/list/world_params = world.params
|
||||
if(!("test" in world_params) || world_params["test"] != "bababooey")
|
||||
FailTest("Expected parameter test=bababooey but did not receive", "test_fail_reason.txt")
|
||||
|
||||
world.log << "file check 1"
|
||||
fdel("test_event_output.txt")
|
||||
var/test_data = "nwfiuurhfu"
|
||||
world.TgsTriggerEvent("test_event", list(test_data), TRUE)
|
||||
@@ -29,6 +31,7 @@
|
||||
if(test_contents != test_data)
|
||||
FailTest("Expected test_event_output.txt to contain [test_data] here. Got [test_contents]", "test_fail_reason.txt")
|
||||
|
||||
world.log << "file check 1"
|
||||
fdel("test_event_output.txt")
|
||||
world.TgsTriggerEvent("test_event", list("asdf"), FALSE)
|
||||
if(fexists("test_event_output.txt"))
|
||||
|
||||
Reference in New Issue
Block a user