Skip to content

Commit 754fddb

Browse files
CICD should not log to disk
1 parent 3d553b0 commit 754fddb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tfb_toolset"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
authors = ["Mike Smith", "Nate Brady"]
55
edition = "2018"
66

src/docker/docker_config.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::benchmarker::modes;
12
use crate::docker::network::{get_network_id, get_tfb_network_id};
23
use crate::io::{create_results_dir, Logger};
34
use crate::options;
@@ -86,7 +87,11 @@ impl<'a> DockerConfig<'a> {
8687
server_host == options::args::SERVER_HOST_DEFAULT
8788
};
8889

89-
let logger = Logger::in_dir(&create_results_dir().unwrap());
90+
let logger = match matches.value_of(options::args::MODE).unwrap() {
91+
// We don't want to log to disk in CICD.
92+
modes::CICD => Logger::default(),
93+
&_ => Logger::in_dir(&create_results_dir().unwrap()),
94+
};
9095

9196
// There is a chance this is a hack, but it seems that these two
9297
// networks are always available out of the box for Docker.

0 commit comments

Comments
 (0)