From: Ian Jackson Date: Mon, 7 Jun 2021 00:12:05 +0000 (+0100) Subject: prefs test: Break out ssh_command ds also X-Git-Tag: otter-0.7.0~54 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0b99ae0e3cf7a908b3445e92f9794748d4c0f565;p=otter.git prefs test: Break out ssh_command ds also Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 646d9794..9134b918 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -249,12 +249,14 @@ impl Ctx { let ssh_command = ds.subst( "@src@/apitest/mock-ssh-restricted @authkeys@ '@dummy_key_data@'" )?; + let ds = ds.also(&[ + ("ssh_command", &ssh_command), + ]); let mk_restricted = |account, rhs|{ let ds = ds.also(&[ ("account", account), ("rhs", rhs), - ("ssh_command", ssh_command.as_str()), ]); let mut command = ds.gss( "--account @account@ \