diff --git a/test/ci_support/example_cdash_analyze_and_report_random_failures.py b/test/ci_support/example_cdash_analyze_and_report_random_failures.py index 1d8b7c398..6c93f5dd0 100755 --- a/test/ci_support/example_cdash_analyze_and_report_random_failures.py +++ b/test/ci_support/example_cdash_analyze_and_report_random_failures.py @@ -8,12 +8,19 @@ import CDashAnalyzeReportRandomFailures as CDARRF +usageHelp = \ +r""" +Example usageHelp string +""" + + def main(): cdashAnalyzeAndReportRandomFailures = \ CDARRF.CDashAnalyzeReportRandomFailuresDriver( ExampleVersionInfoStrategy(), - ExampleExtractBuildNameStrategy()) + ExampleExtractBuildNameStrategy(), + usageHelp=usageHelp) cdashAnalyzeAndReportRandomFailures.runDriver() diff --git a/tribits/ci_support/CDashAnalyzeReportRandomFailures.py b/tribits/ci_support/CDashAnalyzeReportRandomFailures.py index 00b07a0b3..47ed0fdaf 100644 --- a/tribits/ci_support/CDashAnalyzeReportRandomFailures.py +++ b/tribits/ci_support/CDashAnalyzeReportRandomFailures.py @@ -10,10 +10,12 @@ class CDashAnalyzeReportRandomFailuresDriver: - def __init__(self, versionInfoStrategy, extractBuildNameStrategy): + def __init__(self, versionInfoStrategy, extractBuildNameStrategy, + usageHelp=""): self.versionInfoStrategy = versionInfoStrategy self.extractBuildNameStrategy = extractBuildNameStrategy self.args = None + self.usageHelp = usageHelp def runDriver(self): @@ -251,7 +253,7 @@ def runDriver(self): CDQAR.sendMineEmail(msg) def getCmndLineArgs(self): - parser = argparse.ArgumentParser("Arguments for cdash_analyze_and_report_random_failures.py") + parser = argparse.ArgumentParser(description=self.usageHelp) parser.add_argument("--cdash-site-url", default="", required=True) parser.add_argument("--cdash-project-name", default="", required=True)