From 1a3f4746d1c178b143cdc92d98a340a9a828eedd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 17 May 2021 18:07:59 +0100 Subject: [PATCH] apitest: Provide @examples@ Signed-off-by: Ian Jackson --- apitest/apitest.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apitest/apitest.rs b/apitest/apitest.rs index 9a0886a6..b38494d1 100644 --- a/apitest/apitest.rs +++ b/apitest/apitest.rs @@ -201,6 +201,7 @@ impl Substitutor for DirSubst { "specs" => self.specs_dir(), "table" => TABLE.to_owned(), "command_socket" => "command.socket".to_owned(), + "examples" => format!("{}/examples", &self.src), _ => return None, }) } @@ -730,7 +731,7 @@ impl DirSubst { } pub fn example_bundle(&self) -> String { - self.subst("@src@/examples/test-bundle.zip").unwrap() + self.subst("@examples@/test-bundle.zip").unwrap() } #[throws(AE)] -- 2.30.2