Skip to content

Commit

Permalink
Move some code around
Browse files Browse the repository at this point in the history
This is a step towards fixing a bug in reporting that the scheduler is
currently in the setup phase.
  • Loading branch information
jherbel committed Nov 14, 2023
1 parent 802f812 commit 446f6f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
6 changes: 4 additions & 2 deletions v2/robotmk/src/bin/scheduler/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ fn run() -> Result<()> {
}

write_state(&results::SchedulerState::Setup, &global_config)?;
let suites = setup::setup(&global_config, suites)?;
debug!("Setup completed");
setup::general::setup(&global_config, &suites).context("General setup failed")?;
debug!("General setup completed");
let suites = setup::rcc::setup(&global_config, suites).context("RCC-specific setup failed")?;
debug!("RCC-specific setup completed");

if global_config.termination_flag.should_terminate() {
bail!("Terminated")
Expand Down
3 changes: 3 additions & 0 deletions v2/robotmk/src/bin/scheduler/setup.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod general;
mod icacls;
pub mod rcc;
16 changes: 0 additions & 16 deletions v2/robotmk/src/bin/scheduler/setup/mod.rs

This file was deleted.

0 comments on commit 446f6f4

Please sign in to comment.