Skip to content

Commit

Permalink
Merge pull request #1838 from sunya-ch/docs
Browse files Browse the repository at this point in the history
docs: add new line after host/vm/summary table
  • Loading branch information
sthaha authored Nov 6, 2024
2 parents c1ca080 + 806b96c commit 25bbaed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/tools/validator/src/validator/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def add_machine_spec(self, title: str, ms: MachineSpec):
],
)

def new_line(self):
self.write("\n")


def write_md_report(results_dir: str, r: TestResult):
path = os.path.join(results_dir, f"report-{r.tag}.md")
Expand All @@ -193,8 +196,10 @@ def rel_path(x: str) -> str:

md.h2("Machine Specs")
md.add_machine_spec("Host", r.host_spec)
md.new_line()
if r.vm_spec is not None:
md.add_machine_spec("VM", r.vm_spec)
md.new_line()

md.h2("Validation Results")
md.li(f"Started At: `{r.start_time}`")
Expand All @@ -217,6 +222,7 @@ def rel_path(x: str) -> str:
if not v.unexpected_error
],
)
md.new_line()

md.h3("Details")
for v in r.validations.results:
Expand Down

0 comments on commit 25bbaed

Please sign in to comment.