mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
destroy on install failure when running tests
This commit is contained in:
parent
fe33330547
commit
4f1f85db91
1 changed files with 6 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ async fn main() -> Result<()> {
|
|||
println!("Waiting for servers to start");
|
||||
cloud.wait_for_start(&mut docker).await?;
|
||||
println!("Installing");
|
||||
cloud
|
||||
if let Err(e) = cloud
|
||||
.exec(
|
||||
&mut docker,
|
||||
vec![
|
||||
|
|
@ -159,7 +159,11 @@ async fn main() -> Result<()> {
|
|||
],
|
||||
false,
|
||||
)
|
||||
.await?;
|
||||
.await
|
||||
{
|
||||
cloud.destroy(&mut docker).await?;
|
||||
return Err(e);
|
||||
}
|
||||
if let Some(app) = path
|
||||
.as_ref()
|
||||
.and_then(|path| path.strip_prefix("apps/"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue