Skip to content

Commit

Permalink
chore(vdev): Fix Windows compilation again (#16354)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg authored Feb 7, 2023
1 parent 1410b05 commit bed0b05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vdev/src/testing/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ use std::{path::Path, path::PathBuf, process::Command};

use anyhow::{bail, Context, Result};

use super::config::{ComposeConfig, Environment, IntegrationTestConfig};
#[cfg(unix)]
use super::config::ComposeConfig;
use super::config::{Environment, IntegrationTestConfig};
use super::runner::{
ContainerTestRunner as _, IntegrationTestRunner, TestRunner as _, CONTAINER_TOOL, DOCKER_SOCKET,
};
Expand Down Expand Up @@ -111,6 +113,7 @@ struct Compose {
path: PathBuf,
test_dir: PathBuf,
env: Environment,
#[cfg(unix)]
config: ComposeConfig,
network: Option<String>,
}
Expand All @@ -122,11 +125,13 @@ impl Compose {
Err(error) => Err(error).with_context(|| format!("Could not lookup {path:?}")),
Ok(false) => Ok(None),
Ok(true) => {
#[cfg(unix)]
let config = ComposeConfig::parse(&path)?;
Ok(Some(Self {
path,
test_dir,
env,
#[cfg(unix)]
config,
network,
}))
Expand Down

0 comments on commit bed0b05

Please sign in to comment.