Skip to content

Commit

Permalink
tests: fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Nov 23, 2024
1 parent e0ec489 commit d3366dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 3 additions & 6 deletions tests/test_class_oelint_var_badimagefeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def _generate_code(self, var, feature, suffix=''):
'ptest-pkgs',
'serial-autologin-root',
'staticdev-pkgs',
'tools-debug']
)
'tools-debug'])
def test_bad(self, var, feature, id_, occurrence):
self.check_for_id(self._create_args(self._generate_code(var, feature)), f'{id_}.{feature}', occurrence)

Expand All @@ -48,8 +47,7 @@ def test_bad(self, var, feature, id_, occurrence):
'bash-completion-pkgs',
'read-only-rootfs',
'stateless-rootfs',
'splash',]
)
'splash'])
def test_good(self, var, feature, id_, occurrence):
self.check_for_id(self._create_args(self._generate_code(var, feature)), f'{id_}.{feature}', occurrence)

Expand All @@ -67,8 +65,7 @@ def test_good(self, var, feature, id_, occurrence):
'ptest-pkgs',
'serial-autologin-root',
'staticdev-pkgs',
'tools-debug']
)
'tools-debug'])
def test_good_remove(self, var, feature, id_, occurrence):
self.check_for_id(self._create_args(self._generate_code(
var, feature, suffix=':remove')), f'{id_}.{feature}', occurrence)
12 changes: 4 additions & 8 deletions tests/test_class_oelint_var_renamed.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def _generate_code(self, var):
'WHITELIST_GPL-3.0-only',
'WHITELIST_GPL-3.0-or-later',
'WHITELIST_LGPL-3.0-only',
'WHITELIST_LGPL-3.0-or-later',]
)
'WHITELIST_LGPL-3.0-or-later'])
def test_bad(self, var, id_, occurrence):
self.check_for_id(self._create_args(self._generate_code(var)), id_, occurrence)

Expand Down Expand Up @@ -65,8 +64,7 @@ def test_bad(self, var, id_, occurrence):
'WHITELIST_GPL-3.0-only',
'WHITELIST_GPL-3.0-or-later',
'WHITELIST_LGPL-3.0-only',
'WHITELIST_LGPL-3.0-or-later',]
)
'WHITELIST_LGPL-3.0-or-later'])
def test_bad_older_release(self, var, id_, occurrence):
self.check_for_id(self._create_args(self._generate_code(var), ['--release=dunfell']), id_, occurrence)

Expand All @@ -90,8 +88,7 @@ def test_bad_older_release(self, var, id_, occurrence):
'WHITELIST_GPL-3.0-only',
'WHITELIST_GPL-3.0-or-later',
'WHITELIST_LGPL-3.0-only',
'WHITELIST_LGPL-3.0-or-later',]
)
'WHITELIST_LGPL-3.0-or-later'])
def test_fix(self, var, id_):
self.fix_and_check(self._create_args_fix(self._generate_code(var)), id_)

Expand All @@ -101,7 +98,6 @@ def test_fix(self, var, id_):
'TUNEABI_WHITELIST',
'TCLIBCAPPEND',
'VOLATILE_LOG_DIR',
'VOLATILE_TMP_DIR',]
)
'VOLATILE_TMP_DIR'])
def test_bad_unfixable(self, var, id_, occurrence):
self.check_for_id(self._create_args_fix(self._generate_code(var)), id_, occurrence)

0 comments on commit d3366dd

Please sign in to comment.