Skip to content

Commit

Permalink
fixup! Add docker check step to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofl committed Jan 2, 2025
1 parent 6081959 commit a6b3169
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/servers/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ mod tests {
fn build_images() {
INIT.call_once(|| {
// Create the docker images here
let status = Command::new("systemctl")
.arg("is-active")
.arg("docker")
.output()
.expect("Failed to execute command");

assert!(
String::from_utf8_lossy(&status.stdout).contains("active"),
"Docker service is not running"
);
// let status = Command::new("systemctl")
// .arg("is-active")
// .arg("docker")
// .output()
// .expect("Failed to execute command");

// assert!(
// String::from_utf8_lossy(&status.stdout).contains("active"),
// "Docker service is not running"
// );

let dir = std::env::current_dir().unwrap().join("docker");
let _out = Command::new("docker")
Expand Down

0 comments on commit a6b3169

Please sign in to comment.