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:
420723f
)
apitest: Check that unavilable spec doesn't load
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 21 May 2021 19:51:44 +0000
(20:51 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 21 May 2021 19:51:44 +0000
(20:51 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-bundles.rs
patch
|
blob
|
history
diff --git
a/apitest/at-bundles.rs
b/apitest/at-bundles.rs
index b2d51a5acd6d0f725d383d5ac04d480ce7958e26..9e2e86c90be035e79098fccd6b0b503acd9c5669 100644
(file)
--- a/
apitest/at-bundles.rs
+++ b/
apitest/at-bundles.rs
@@
-49,6
+49,13
@@
impl Ctx {
fn reset_with_bundles(&mut self) {
self.clear_reset_to_demo()?;
+ // check that the spec is not accessible now
+ let e = self.otter(
+ &G("reset demo-in-test-bundle")
+ ).unwrap_err();
+ let e: ExitStatusError = e.downcast().unwrap();
+ assert_eq!(e.0.code(), Some(12));
+
self.otter_resetting(
&G("reset demo-in-test-bundle @examples@/test-bundle.zip")
)?;