We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 835b3ed commit 5ba130aCopy full SHA for 5ba130a
1 file changed
src/main.rs
@@ -68,7 +68,17 @@ mod tests {
68
path.push("target");
69
path.push("debug");
70
path.push("cloudcheck");
71
- path.to_string_lossy().to_string()
+ let bin_path = path.to_string_lossy().to_string();
72
+
73
+ if !std::path::Path::new(&bin_path).exists() {
74
+ let status = Command::new("cargo")
75
+ .args(["build", "--bin", "cloudcheck"])
76
+ .status()
77
+ .expect("Failed to run cargo build");
78
+ assert!(status.success(), "Failed to build cloudcheck binary");
79
+ }
80
81
+ bin_path
82
});
83
let mut cmd = Command::new(bin_path);
84
cmd.args(["lookup", "8.8.8.8"]);
0 commit comments