summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/contrib/tts/tests.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-07-30 19:25:18 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:27:55 +0100
commit1da5e0a793adee9248ecce927952ba8c00bdcb0e (patch)
treef4cfb5f9e7db9c346b94b8eb1ef2aabae7e67864 /bitbake/lib/toaster/contrib/tts/tests.py
parente6419ccd93e87e730c0a6dba7a15e0ba2b986fff (diff)
downloadpoky-1da5e0a793adee9248ecce927952ba8c00bdcb0e.tar.gz
bitbake: toaster: tts: execute tests in numeric order
As the tests are verifying different type of the functionality, it is usually the case that a failing early test will completely make the subsequent tests failing, e.g. if the system cannot start due to a bug, there is little point in testing other functions. In order to prevent uneeded test runs, and to generate repeatable test patterns, the test cases have now a numeric order in the class name (e.g. Test01XXX). The tests are executed in this order, and the first test failing will stop the test run. (Bitbake rev: 639c46a08e524902018e28367fcb4e26362cd3e3) 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/lib/toaster/contrib/tts/tests.py')
-rw-r--r--bitbake/lib/toaster/contrib/tts/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/contrib/tts/tests.py b/bitbake/lib/toaster/contrib/tts/tests.py
index 9acef46a38..3a4eed1e9f 100644
--- a/bitbake/lib/toaster/contrib/tts/tests.py
+++ b/bitbake/lib/toaster/contrib/tts/tests.py
@@ -30,7 +30,7 @@ import config
30import pexpect 30import pexpect
31import sys, os, signal, time 31import sys, os, signal, time
32 32
33class TestPyCompilable(unittest.TestCase): 33class Test00PyCompilable(unittest.TestCase):
34 ''' Verifies that all Python files are syntactically correct ''' 34 ''' Verifies that all Python files are syntactically correct '''
35 def test_compile_file(self): 35 def test_compile_file(self):
36 try: 36 try:
@@ -38,7 +38,7 @@ class TestPyCompilable(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
41class TestPySystemStart(unittest.TestCase): 41class Test01PySystemStart(unittest.TestCase):
42 ''' Attempts to start Toaster, verify that it is succesfull, and stop it ''' 42 ''' Attempts to start Toaster, verify that it is succesfull, and stop it '''
43 def setUp(self): 43 def setUp(self):
44 run_shell_cmd("bash -c 'rm -f build/*log'") 44 run_shell_cmd("bash -c 'rm -f build/*log'")
@@ -55,7 +55,7 @@ class TestPySystemStart(unittest.TestCase):
55 except ShellCmdException as exc: 55 except ShellCmdException as exc:
56 self.fail("Failed starting managed mode: %s" % (exc)) 56 self.fail("Failed starting managed mode: %s" % (exc))
57 57
58class TestHTML5Compliance(unittest.TestCase): 58class Test02HTML5Compliance(unittest.TestCase):
59 def setUp(self): 59 def setUp(self):
60 self.origdir = os.getcwd() 60 self.origdir = os.getcwd()
61 self.crtdir = os.path.dirname(config.TESTDIR) 61 self.crtdir = os.path.dirname(config.TESTDIR)