From f7ca9d4c463e5c8d371805350dcb01d7bafd2b9c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 4 May 2021 00:02:56 +0100 Subject: [PATCH] apitest: Split up prepare_gameserver Signed-off-by: Ian Jackson --- apitest/apitest.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apitest/apitest.rs b/apitest/apitest.rs index 1186261b..93c779e3 100644 --- a/apitest/apitest.rs +++ b/apitest/apitest.rs @@ -628,6 +628,12 @@ _ = "error" # rocket fs::write(CONFIG, &config) .context(CONFIG).context("create server config")?; + start_gameserver(cln, ds)? +} + +#[throws(AE)] +fn start_gameserver(cln: &cleanup_notify::Handle, ds: &DirSubst) + -> (MgmtChannel, Child) { let server_exe = ds.subst("@target@/debug/daemon-otter")?; let mut cmd = Command::new(&server_exe); cmd -- 2.30.2