summaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index d5a4f81..0dc5396 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -125,6 +125,18 @@ impl Env {
.unwrap()
}
+ /// Make the next publish abort at a named point (I4 / I5 tests).
+ pub fn set_publish_fault(&mut self, at: &str) {
+ self.cfg.publish_fault = Some(at.to_string());
+ }
+ pub fn clear_publish_fault(&mut self) {
+ self.cfg.publish_fault = None;
+ }
+ /// Make the named shim fail (the "build failed" path, ยง8.4).
+ pub fn set_shim_fail(&mut self, tool: &str) {
+ self.cfg.shim_fail = Some(tool.to_string());
+ }
+
pub fn query_i64(&self, sql: &str, params: &[P]) -> Option<i64> {
let sql = sql.to_string();
let params: Vec<P> = params.to_vec();