Change how we restart during integration tests

This commit is contained in:
Jordan Brown
2020-05-06 16:35:54 -04:00
parent cfdc190e5c
commit 2e7dfe6103
2 changed files with 20 additions and 32 deletions
+7 -11
View File
@@ -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");