mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake: toaster: toastergui: run pylint on the toaster files
This patch enables pylint running on the toaster files, showing only the errors. This enables spotting common mistakes in the toaster python files. (Bitbake rev: d2e69721233ab3cbbc3bdd6a1c198fde8a1f287e) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1da5e0a793
commit
6520feb4ab
@@ -38,6 +38,12 @@ class Test00PyCompilable(unittest.TestCase):
|
||||
except ShellCmdException as exc:
|
||||
self.fail("Error compiling python files: %s" % (exc))
|
||||
|
||||
def test_pylint_file(self):
|
||||
try:
|
||||
run_shell_cmd(r"find . -iname \"*\.py\" -type f -print0 | PYTHONPATH=${PYTHONPATH}:. xargs -r -0 -n1 pylint --load-plugins pylint_django -E --reports=n 2>&1", cwd=config.TESTDIR + "/bitbake/lib/toaster")
|
||||
except ShellCmdException as exc:
|
||||
self.fail("Pylint fails: %s\n" % exc)
|
||||
|
||||
class Test01PySystemStart(unittest.TestCase):
|
||||
''' Attempts to start Toaster, verify that it is succesfull, and stop it '''
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user