Skip to content

Commit

Permalink
Create a summary file before spinning up a test VM
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 11, 2023
1 parent 25b2990 commit d0638fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ async fn main() -> Result<()> {
verbose,
test_report,
} => {
let summary_logger = match test_report {
Some(path) => Some(
summary::SummaryLogger::new(&name, &path)
.await
.context("Failed to create summary logger")?,
),
None => None,
};

let mut config = config.clone();
config.runtime_opts.display = match (display, vnc.is_some()) {
(false, false) => config::Display::None,
Expand Down Expand Up @@ -232,15 +241,6 @@ async fn main() -> Result<()> {

let skip_wait = vm_config.provisioner != config::Provisioner::Noop;

let summary_logger = match test_report {
Some(path) => Some(
summary::SummaryLogger::new(&name, &path)
.await
.context("Failed to create summary logger")?,
),
None => None,
};

let result = run_tests::run(
tests::config::TestConfig {
account_number: account,
Expand Down

0 comments on commit d0638fc

Please sign in to comment.