Improved rotation filter coverage
- Check errors - Try extra debug
This commit is contained in:
parent
bb5ab6119a
commit
eea93ea8ec
|
|
@ -213,7 +213,7 @@ def test_position_rot_1():
|
|||
def test_position_rot_2():
|
||||
prj = 'light_control'
|
||||
ctx = context.TestContext('test_position_rot_2', prj, 'simple_position_rot_2', POS_DIR)
|
||||
ctx.run()
|
||||
ctx.run(extra_debug=True)
|
||||
output = prj+'_cpl_jlc.csv'
|
||||
ctx.expect_out_file(output)
|
||||
ctx.compare_txt(output)
|
||||
|
|
|
|||
|
|
@ -598,3 +598,24 @@ def test_error_pcbdraw_comp_key():
|
|||
ctx.run(EXIT_BAD_CONFIG)
|
||||
assert ctx.search_err("Option .?show_components.? must be any of")
|
||||
ctx.clean_up()
|
||||
|
||||
|
||||
def test_error_rot_not_two():
|
||||
ctx = context.TestContext('test_error_rot_not_two', 'bom', 'error_rot_not_two', '')
|
||||
ctx.run(EXIT_BAD_CONFIG)
|
||||
assert ctx.search_err("Each regex/angle pair must contain exactly two values")
|
||||
ctx.clean_up()
|
||||
|
||||
|
||||
def test_error_rot_not_number():
|
||||
ctx = context.TestContext('test_error_rot_not_number', 'bom', 'error_rot_not_number', '')
|
||||
ctx.run(EXIT_BAD_CONFIG)
|
||||
assert ctx.search_err("The second value in the regex/angle pairs must be a number")
|
||||
ctx.clean_up()
|
||||
|
||||
|
||||
def test_error_rot_no_rotations():
|
||||
ctx = context.TestContext('test_error_rot_no_rotations', 'bom', 'error_rot_no_rotations', '')
|
||||
ctx.run(EXIT_BAD_CONFIG)
|
||||
assert ctx.search_err("No rotations provided")
|
||||
ctx.clean_up()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
kibot:
|
||||
version: 1
|
||||
|
||||
filters:
|
||||
- name: fix_rotation
|
||||
comment: 'Adjust rotation for JLC'
|
||||
type: rot_footprint
|
||||
extend: false
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
kibot:
|
||||
version: 1
|
||||
|
||||
filters:
|
||||
- name: fix_rotation
|
||||
comment: 'Adjust rotation for JLC'
|
||||
type: rot_footprint
|
||||
rotations:
|
||||
- ['U*', 180]
|
||||
- - 'U*'
|
||||
- 'a180'
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
kibot:
|
||||
version: 1
|
||||
|
||||
filters:
|
||||
- name: fix_rotation
|
||||
comment: 'Adjust rotation for JLC'
|
||||
type: rot_footprint
|
||||
rotations:
|
||||
- ['U*', 180]
|
||||
- - 'U*'
|
||||
- 180
|
||||
- [Hi!]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue