Skip to content

Commit

Permalink
Add possibility to use tool name for fake tool log files
Browse files Browse the repository at this point in the history
  • Loading branch information
tudortimi committed Dec 10, 2023
1 parent 50e4f9f commit d98b737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_frmwrk.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def get_path_without_sims():
return os.path.pathsep.join(paths)


def fake_tool(name):
def fake_tool(name, log_name_is_tool_name=False):
executable = pathlib.Path(name)
log_file = 'fake_tool.log'
log_file = 'fake_tool.log' if not log_name_is_tool_name else f'fake_{name}.log'
script = [
'echo "{} called" > {}'.format(name, log_file),
'echo "args:" >> {}'.format(log_file),
Expand Down

0 comments on commit d98b737

Please sign in to comment.