Skip to content

Commit

Permalink
Two minor fixes for sections
Browse files Browse the repository at this point in the history
* Name all sections "robotmk_..."
* Use null character as separator
  • Loading branch information
jherbel committed Nov 7, 2023
1 parent a815616 commit b0f2d61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions v2/robotmk/src/bin/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn report_config_content(content: String) {
fn print_sections(sections: &[Section], stdout: &mut impl io::Write) {
// TODO: Test this function.
for section in sections.iter() {
let mut with_header = format!("<<<{}>>>\n{}\n", section.name, section.content);
let mut with_header = format!("<<<{}:sep(0)>>>\n{}\n", section.name, section.content);
if let Host::Piggyback(host) = &section.host {
with_header = format!("<<<<{}>>>>\n{}<<<<>>>>\n", host, with_header);
}
Expand All @@ -67,7 +67,7 @@ fn print_sections(sections: &[Section], stdout: &mut impl io::Write) {

fn main() {
let arguments = Args::parse();
println!("<<<robotmk_v2:sep(10)>>>");
println!("<<<robotmk_config:sep(0)>>>");
let config_path = match determine_config_path(arguments.config_path) {
Ok(p) => p,
Err(e) => {
Expand Down
6 changes: 3 additions & 3 deletions v2/robotmk/src/bin/scheduler/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct RCCSetupFailures {

impl WriteSection for RCCSetupFailures {
fn name() -> &'static str {
"rcc_setup_failures"
"robotmk_rcc_setup_failures"
}
}

Expand All @@ -32,7 +32,7 @@ pub struct BuildStates<'a>(&'a HashMap<String, EnvironmentBuildStatus>);

impl WriteSection for BuildStates<'_> {
fn name() -> &'static str {
"environment_build_states"
"robotmk_environment_build_states"
}
}

Expand Down Expand Up @@ -80,7 +80,7 @@ pub struct SuiteExecutionReport {

impl WritePiggybackSection for SuiteExecutionReport {
fn name() -> &'static str {
"suite_execution_report"
"robotmk_suite_execution_report"
}
}

Expand Down

0 comments on commit b0f2d61

Please sign in to comment.