Skip to content

Commit

Permalink
[Kiri][Added] Pass the debug level to kidiff
Browse files Browse the repository at this point in the history
- Trying to figure out fails on GitHub that I can't reproduce locally
  • Loading branch information
set-soft committed Dec 20, 2024
1 parent 618be6f commit d4b67a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kibot/out_any_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def add_zones_ops(self, cmd):

def add_to_cache(self, name, hash):
cmd = [self.command, '--no_reader', '--only_cache', '--old_file_hash', hash, '--cache_dir', self.cache_dir]
if GS.debug_level > 0:
cmd.append('-'+'v'*GS.debug_level)
if self._kiri_mode:
cmd.append('--kiri_mode')
self.add_zones_ops(cmd)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ def test_diff_kiri_1(test_dir):
# Copy the "new" file
shutil.copy2(ctx.board_file.replace(prj, prj+'_diff'), file)
# Run the test
ctx.run(extra=['-b', file], no_board_file=True)
ctx.run(extra=['-b', file], no_board_file=True, extra_debug=True)
ctx.expect_out_file(['_local_/_KIRI_/pcb_layers', hash+'/_KIRI_/pcb_layers',
'_local_/_KIRI_/sch_sheets', hash+'/_KIRI_/sch_sheets',
'index.html', 'commits', 'project'])
Expand Down

0 comments on commit d4b67a6

Please sign in to comment.