From 0b99ae0e3cf7a908b3445e92f9794748d4c0f565 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 7 Jun 2021 01:12:05 +0100 Subject: [PATCH] prefs test: Break out ssh_command ds also Signed-off-by: Ian Jackson --- apitest/at-otter.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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@ \ -- 2.30.2