Skip to content

Commit

Permalink
minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
webmiche committed Dec 9, 2022
1 parent 5af40d1 commit 323ff4a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions xdsl/xdsl_opt_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ def run(self):
Executes the different steps.
"""
if self.args.generate_coverage:
# TODO: In a perfect world, this could be loaded from `.coveragerc`,
# the configuration file used for pytest. However, it turns out that
# lit behaves weirdly making this hard to achieve.
cov = coverage.Coverage(config_file=self.args.coverage_config,
auto_data=True,
data_file='.coverage',
Expand Down Expand Up @@ -176,11 +173,14 @@ def register_all_arguments(self, arg_parser: argparse.ArgumentParser):
action='store_true',
help="Generate the xDSL code coverage for this run.")

arg_parser.add_argument("--coverage-config",
type=str,
default=False,
required=False,
help="Link to the coverage config file.")
arg_parser.add_argument(
"--coverage-config",
type=str,
default=False,
required=False,
help=
"Link to the coverage config file. This flag only takes effect if `--generate-config` was specified."
)

def register_all_dialects(self):
"""
Expand Down

0 comments on commit 323ff4a

Please sign in to comment.