Added test for the warning about filenames with $.

This commit is contained in:
Salvador E. Tropea 2021-02-01 14:53:38 -03:00
parent 76db8a65e4
commit e3766519ac
2 changed files with 4 additions and 1 deletions

View File

@ -593,7 +593,7 @@ def test_makefile_1(test_dir):
# pcb_render target
deps = targets['pcb_render'].split(' ')
assert len(deps) == 1, deps
assert ctx.get_out_path(prj+'-top.svg') in deps
assert ctx.get_out_path(prj+'-top$.svg') in deps
assert os.path.abspath(targets[targets['pcb_render']]) == ctx.board_file
logging.debug('- Target `pcb_render` OK')
# drill target
@ -644,6 +644,7 @@ def test_makefile_1(test_dir):
assert ctx.get_out_path('gerbers') in deps
logging.debug('- Target `archive` OK')
ctx.search_err(r'\(kibom_external\) \[kibom\] uses a name generated by the external tool')
ctx.search_err(r'Wrong character in file name `pp/test_makefile_1/test_v5-top\$.svg')
ctx.clean_up()

View File

@ -56,6 +56,8 @@ outputs:
- name: 'pcb_render'
comment: 'Top layer in SVG'
type: pcbdraw
options:
output: '%f-%i$.%x'
- name: 'archive'
comment: 'Compressed files'