test_bitbake_oelint_adv_handler.vader
1 Before: 2 runtime ale_linters/bitbake/oelint_adv.vim 3 4 After: 5 Restore 6 7 call ale#linter#Reset() 8 9 Execute(The oelint_adv handler should handle warnings): 10 AssertEqual 11 \ [ 12 \ { 13 \ 'lnum': 1234, 14 \ 'type': 'I', 15 \ 'code': 'oelint.var.suggestedvar.BUGTRACKER', 16 \ 'text': 'Variable ''BUGTRACKER'' should be set', 17 \ }, 18 \ { 19 \ 'lnum': 17, 20 \ 'type': 'E', 21 \ 'code': 'oelint.var.mandatoryvar.DESCRIPTION', 22 \ 'text': 'Variable ''DESCRIPTION'' should be set', 23 \ }, 24 \ ], 25 \ ale_linters#bitbake#oelint_adv#Handle(1, [ 26 \ '/meta-x/recipes-y/example/example_1.0.bb:1234:info:oelint.var.suggestedvar.BUGTRACKER:Variable ''BUGTRACKER'' should be set', 27 \ '[31mexample2_1.1.bb:17:error:oelint.var.mandatoryvar.DESCRIPTION:Variable ''DESCRIPTION'' should be set[0m', 28 \ ])