chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
470e469
)
apitest: Provide @examples@
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 17 May 2021 17:07:59 +0000
(18:07 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 17 May 2021 17:15:28 +0000
(18:15 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/apitest.rs
patch
|
blob
|
history
diff --git
a/apitest/apitest.rs
b/apitest/apitest.rs
index 9a0886a6b5ecbe12b60f8d73a557e16a7438e631..b38494d1dc92b3a5488874be1884121c9a04daad 100644
(file)
--- 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)]