Skip to content

Commit 0d0f99c

Browse files
committed
Test: run tart stop before tart delete
1 parent 51ada8f commit 0d0f99c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test-manager/src/vm/tart.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,15 @@ impl MachineCopy {
211211
}
212212

213213
fn destroy_inner(&mut self) -> Result<()> {
214+
let output = tart()
215+
.into_std()
216+
.args(["stop", &self.name])
217+
.status()
218+
.context("Failed to run 'tart stop'")?;
219+
if !output.success() {
220+
return Err(anyhow!("'tart stop' failed: {output}"));
221+
}
222+
214223
let output = tart()
215224
.into_std()
216225
.args(["delete", &self.name])

0 commit comments

Comments
 (0)