[Tests] Added test for --no-warn

This commit is contained in:
Salvador E. Tropea 2022-09-21 08:31:10 -03:00
parent 7238539a29
commit 6eaa09beea
2 changed files with 8 additions and 6 deletions

View File

@ -150,10 +150,11 @@ def test_print_sch_variant_ni_2(test_dir):
def test_sch_missing_1(test_dir):
""" R1 exists in l1.lib, but the lib isn't specified.
R2 is bogus, completely missing """
R2 is bogus, completely missing.
Test for the -w/--no-warn option (only in CI/CD where we get W008+W009) """
prj = 'missing'
ctx = context.TestContextSCH(test_dir, prj, 'sch_no_inductors_1')
ctx.run()
ctx.run(extra=['-w', '8,9'])
o_name = os.path.join(NI_DIR, prj+context.KICAD_SCH_EXT)
ctx.expect_out_file(o_name)
if context.ki5():

View File

@ -4,10 +4,11 @@ kibot:
global:
filters:
- number: 8
regex: kicad_common
- number: 9
regex: 'EnvironmentVariables'
# Filtered in the CLI
# - number: 8
# regex: kicad_common
# - number: 9
# regex: 'EnvironmentVariables'
- number: 10
regex: '(3D|templates)'