mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
Change how we restart during integration tests
This commit is contained in:
@@ -14,6 +14,13 @@
|
||||
/world/Topic(T, Addr, Master, Keys)
|
||||
TGS_TOPIC
|
||||
|
||||
var/list/data = params2list(T)
|
||||
var/special_tactics = data["tgs_integration_test_special_tactics"]
|
||||
if(special_tactics)
|
||||
RebootAsync()
|
||||
return "ack"
|
||||
return "feck"
|
||||
|
||||
/world/Reboot(reason)
|
||||
TgsChatBroadcast("World Rebooting")
|
||||
TgsReboot()
|
||||
@@ -23,17 +30,6 @@
|
||||
|
||||
world.TgsChatBroadcast("Recieved event: [json_encode(args)]")
|
||||
|
||||
if(event_code != TGS_EVENT_REBOOT_MODE_CHANGE)
|
||||
world.TgsChatBroadcast("Not rebooting, wrong event");
|
||||
return
|
||||
|
||||
if(args[3] != TGS_REBOOT_MODE_RESTART)
|
||||
world.TgsChatBroadcast("Not rebooting, wrong reboot mode");
|
||||
return
|
||||
|
||||
RebootAsync()
|
||||
|
||||
|
||||
/proc/RebootAsync()
|
||||
set waitfor = FALSE
|
||||
world.TgsChatBroadcast("Rebooting after 3 seconds");
|
||||
|
||||
Reference in New Issue
Block a user