Skip to content

Commit

Permalink
🐛 fix: Fix Docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
queer committed Dec 22, 2023
1 parent 298c8ac commit 03395f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/artifact/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,13 @@ impl ArtifactProducer for DockerProducer {

let changes = if self.cmd.clone().is_some() {
debug!("docker_cmd = {docker_cmd:?}");
vec!["ENV DEBUG=true", docker_cmd.as_str()]
vec![
"ENV MADE_WITH_PECKISH=true",
"ENV DEBUG=true",
docker_cmd.as_str(),
]
} else {
vec![]
vec!["ENV MADE_WITH_PECKISH=true"]
};
let options = CreateImageOptions {
from_src: "-".to_string(),
Expand Down
5 changes: 2 additions & 3 deletions src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ pub enum Fix {
}

#[cfg(test)]
#[allow(unused_must_use)]
#[allow(unused_must_use, unknown_lints, clippy::needless_if)]
pub fn test_init() {
// std::env::set_var("RUST_LOG", "DEBUG");
std::env::set_var("RUST_BACKTRACE", "full");
std::panic::catch_unwind(|| {
#[allow(unknown_lints, clippy::needless_if)]
if color_eyre::install().is_ok() {}
if color_eyre::install().is_err() {}
let subscriber = tracing_subscriber::FmtSubscriber::builder()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.finish();
Expand Down

0 comments on commit 03395f8

Please sign in to comment.