summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-07-30 19:25:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:27:55 +0100
commit6520feb4ab115514f6eb255bea7666fc8fea5b22 (patch)
tree94f6b6f2a054b0473e48953a11aad8ee8599a6bc /bitbake
parent1da5e0a793adee9248ecce927952ba8c00bdcb0e (diff)
downloadpoky-6520feb4ab115514f6eb255bea7666fc8fea5b22.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/contrib/tts/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/contrib/tts/tests.py b/bitbake/lib/toaster/contrib/tts/tests.py
index 3a4eed1e9f..c510ebb108 100644
--- a/bitbake/lib/toaster/contrib/tts/tests.py
+++ b/bitbake/lib/toaster/contrib/tts/tests.py
@@ -38,6 +38,12 @@ class Test00PyCompilable(unittest.TestCase):
38 except ShellCmdException as exc: 38 except ShellCmdException as exc:
39 self.fail("Error compiling python files: %s" % (exc)) 39 self.fail("Error compiling python files: %s" % (exc))
40 40
41 def test_pylint_file(self):
42 try:
43 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")
44 except ShellCmdException as exc:
45 self.fail("Pylint fails: %s\n" % exc)
46
41class Test01PySystemStart(unittest.TestCase): 47class Test01PySystemStart(unittest.TestCase):
42 ''' Attempts to start Toaster, verify that it is succesfull, and stop it ''' 48 ''' Attempts to start Toaster, verify that it is succesfull, and stop it '''
43 def setUp(self): 49 def setUp(self):