Skip to content

Commit

Permalink
main: set nanbield as default release
Browse files Browse the repository at this point in the history
as scarthgap is still a moving target

Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Jan 17, 2024
1 parent 174c093 commit 51a476d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion oelint_adv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def create_argparser() -> argparse.ArgumentParser:
help='Print loaded rules as a rulefile and exit')
parser.add_argument('--exit-zero', action='store_true', default=False,
help='Always return a 0 (non-error) status code, even if lint errors are found')
parser.add_argument('--release', default=list(Tweaks._map.keys())[-1], choices=Tweaks._map.keys(),
parser.add_argument('--release', default='nanbield', choices=Tweaks._map.keys(),
help='Run against a specific Yocto release')
# Override the defaults with the values from the config file
parser.set_defaults(**parse_configfile())
Expand Down
8 changes: 4 additions & 4 deletions tests/test_class_oelint_var_inherit.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestClassOelintVarInherit(TestBaseClass):
],
)
def test_bad_inherit(self, input_, id_, occurrence):
self.check_for_id(self._create_args(input_), id_, occurrence)
self.check_for_id(self._create_args(input_, ['--release=scarthgap']), id_, occurrence)

@pytest.mark.parametrize('id_', ['oelint.var.inherit.inherit'])
@pytest.mark.parametrize('occurrence', [1])
Expand All @@ -41,7 +41,7 @@ def test_bad_inherit(self, input_, id_, occurrence):
],
)
def test_bad_inherit_defer(self, input_, id_, occurrence):
self.check_for_id(self._create_args(input_), id_, occurrence)
self.check_for_id(self._create_args(input_, ['--release=scarthgap']), id_, occurrence)

@pytest.mark.parametrize('id_', ['oelint.var.inherit.inherit'])
@pytest.mark.parametrize('occurrence', [0])
Expand All @@ -56,7 +56,7 @@ def test_bad_inherit_defer(self, input_, id_, occurrence):
],
)
def test_good_inherit(self, input_, id_, occurrence):
self.check_for_id(self._create_args(input_), id_, occurrence)
self.check_for_id(self._create_args(input_, ['--release=scarthgap']), id_, occurrence)

@pytest.mark.parametrize('id_', ['oelint.var.inherit.inherit_defer'])
@pytest.mark.parametrize('occurrence', [0])
Expand All @@ -83,4 +83,4 @@ def test_good_inherit(self, input_, id_, occurrence):
],
)
def test_good_inherit_defer(self, input_, id_, occurrence):
self.check_for_id(self._create_args(input_), id_, occurrence)
self.check_for_id(self._create_args(input_, ['--release=scarthgap']), id_, occurrence)

0 comments on commit 51a476d

Please sign in to comment.