mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +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");
|
println!("Waiting for servers to start");
|
||||||
cloud.wait_for_start(&mut docker).await?;
|
cloud.wait_for_start(&mut docker).await?;
|
||||||
println!("Installing");
|
println!("Installing");
|
||||||
cloud
|
if let Err(e) = cloud
|
||||||
.exec(
|
.exec(
|
||||||
&mut docker,
|
&mut docker,
|
||||||
vec![
|
vec![
|
||||||
|
|
@ -159,7 +159,11 @@ async fn main() -> Result<()> {
|
||||||
],
|
],
|
||||||
false,
|
false,
|
||||||
)
|
)
|
||||||
.await?;
|
.await
|
||||||
|
{
|
||||||
|
cloud.destroy(&mut docker).await?;
|
||||||
|
return Err(e);
|
||||||
|
}
|
||||||
if let Some(app) = path
|
if let Some(app) = path
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|path| path.strip_prefix("apps/"))
|
.and_then(|path| path.strip_prefix("apps/"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue