Skip to content

Commit

Permalink
Improve the help message of collect test result
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Feb 17, 2024
1 parent 287fe90 commit 0309879
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions acto/post_process/collect_test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,18 @@ def dump_csv(self, output_path: str):

def main():
"""Main entry point."""
parser = argparse.ArgumentParser()
parser.add_argument("--config", type=str, required=True)
parser.add_argument("--testrun-dir", type=str, required=True)
parser = argparse.ArgumentParser(
description="Collect all test results into a CSV file for analysis."
)
parser.add_argument(
"--config",
type=str,
required=True,
help="Path to the operator config file",
)
parser.add_argument(

Check warning on line 102 in acto/post_process/collect_test_result.py

View workflow job for this annotation

GitHub Actions / coverage-report

Missing coverage

Missing coverage on lines 93-102
"--testrun-dir", type=str, required=True, help="Path to the testrun dir"
)
args = parser.parse_args()

with open(args.config, "r", encoding="utf-8") as config_file:
Expand All @@ -101,7 +110,7 @@ def main():
args.testrun_dir,
config,
)
post_processor.post_process("./result.csv")
post_processor.post_process(os.path.join(args.testrun_dir, "results.csv"))

Check warning on line 113 in acto/post_process/collect_test_result.py

View workflow job for this annotation

GitHub Actions / coverage-report

Missing coverage

Missing coverage on line 113


if __name__ == "__main__":
Expand Down

0 comments on commit 0309879

Please sign in to comment.