Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Delaunay committed Feb 6, 2024
1 parent 01b8d25 commit d87f421
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions milabench/cli/dry.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ def print(self, *args, **kwargs):
print(*args, **kwargs)

def section(self, title):
self.comment("---")
self.comment(title)
self.comment("=" * len(title))
self.echo("---")
self.echo(title)
self.echo("=" * len(title))

def echo(self, msg):
self.print(f"echo \"{msg}\"")

def comment(self, cmt):
self.print(f"# {cmt}")
Expand Down
8 changes: 6 additions & 2 deletions tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ def test_command_regression(capsys, file_regression):

args = arguments()
args.withenv = False
cli_dry(args)


try:
cli_dry(args)
except FileNotFoundError:
pytest.skip("Milabench not installed")

all = capsys.readouterr()
stdout = all.out
assert stdout != ""
Expand Down

0 comments on commit d87f421

Please sign in to comment.