diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index 3c4f83a0..a0e12441 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -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) diff --git a/tests/yaml_samples/dont_stop_1.kibot.yaml b/tests/yaml_samples/dont_stop_1.kibot.yaml new file mode 100644 index 00000000..a45628cc --- /dev/null +++ b/tests/yaml_samples/dont_stop_1.kibot.yaml @@ -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