@@ -215,9 +215,9 @@ def _check_coverage_tool_installation(coverage_type: GcovReportFormat):
215215
216216 # Verify the tools are installed prior to the build
217217 p = _run (["ninja" , "-C" , build_dir , "-t" , "targets" , "all" ], output = False )
218- if f"coverage-{ coverage_type . value } " not in p .stdout .decode ("ascii" ):
218+ if f"coverage-{ coverage_type } " not in p .stdout .decode ("ascii" ):
219219 raise click .ClickException (
220- f"coverage-{ coverage_type . value } is not supported... "
220+ f"coverage-{ coverage_type } is not supported... "
221221 f"Ensure the following are installed: { ', ' .join (requirements [coverage_type ])} "
222222 "and rerun `spin test --gcov`"
223223 )
@@ -363,7 +363,7 @@ def _get_configured_command(command_name):
363363)
364364@click .option (
365365 "--gcov-format" ,
366- type = click .Choice (GcovReportFormat ),
366+ type = click .Choice ([ e . name for e in GcovReportFormat ] ),
367367 default = "html" ,
368368 help = f"Format of the gcov report. Can be one of { ', ' .join (e .value for e in GcovReportFormat )} ." ,
369369)
@@ -512,7 +512,7 @@ def test(
512512
513513 # Generate report
514514 click .secho (
515- f"Generating { gcov_format . value } coverage report..." ,
515+ f"Generating { gcov_format } coverage report..." ,
516516 bold = True ,
517517 fg = "bright_yellow" ,
518518 )
@@ -521,7 +521,7 @@ def test(
521521 "ninja" ,
522522 "-C" ,
523523 build_dir ,
524- f"coverage-{ gcov_format .value . lower ()} " ,
524+ f"coverage-{ gcov_format .lower ()} " ,
525525 ],
526526 output = False ,
527527 )
0 commit comments