[Tests] Added test for --dont-stop

This commit is contained in:
Salvador E. Tropea 2022-08-12 11:17:23 -03:00
parent 83c7d10ba0
commit 292105b6f8
2 changed files with 30 additions and 0 deletions

View File

@ -1254,3 +1254,15 @@ def test_dependencies_1(test_dir):
with open(ctx.get_out_path('output.txt'), 'rt') as f:
data = json.load(f)
assert dep in data
def test_dont_stop_1(test_dir):
""" The first target fails, check we get the second """
ctx = context.TestContext(test_dir, 'light_control', 'dont_stop_1', 'positiondir')
ctx.run(extra=['--dont-stop'])
pos_top = ctx.get_pos_top_csv_filename()
pos_bot = ctx.get_pos_bot_csv_filename()
ctx.expect_out_file(pos_top)
ctx.expect_out_file(pos_bot)
ctx.search_err('ERROR:Failed to create BoM')
ctx.clean_up(keep_project=True)

View File

@ -0,0 +1,18 @@
# A fail target plus a valid target
kibot:
version: 1
outputs:
- name: 'kibom_fail'
type: 'kibom'
options:
config: bogus.ini
- name: 'position'
type: position
dir: positiondir
options:
format: CSV # CSV or ASCII format
units: millimeters # millimeters or inches
separate_files_for_front_and_back: true
only_smd: true