summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/contrib/tts/runner.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-07-30 19:25:14 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:27:54 +0100
commitf9eb958a8a3062a0f7e525177518bc761f0c0bef (patch)
treec5bdc381be0ea71d567cb8dc6ccf3fa5fa2eb429 /bitbake/lib/toaster/contrib/tts/runner.py
parentba667a0908db537c72aa124a2a80ee374260d1fa (diff)
downloadpoky-f9eb958a8a3062a0f7e525177518bc761f0c0bef.tar.gz
bitbake: toaster: tts: fix startup and cleanup for managed mode
This patch fixes the toaster startup and database cleanup for managed mode. It is needed because the toaster script thinks it has been called with "source" instead of being executed as independent script if not called through bash. (Bitbake rev: f08ce41f1137f268049ef8345462aa58b233e50b) 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/runner.py')
-rwxr-xr-xbitbake/lib/toaster/contrib/tts/runner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/contrib/tts/runner.py b/bitbake/lib/toaster/contrib/tts/runner.py
index dac632cffa..3fd1b66e64 100755
--- a/bitbake/lib/toaster/contrib/tts/runner.py
+++ b/bitbake/lib/toaster/contrib/tts/runner.py
@@ -122,6 +122,7 @@ def execute_tests(dir_under_test, testname):
122 # we disable the broad-except because we want to actually catch all possible exceptions 122 # we disable the broad-except because we want to actually catch all possible exceptions
123 try: 123 try:
124 config.logger.debug("Discovered test clases: %s", pprint.pformat(tests)) 124 config.logger.debug("Discovered test clases: %s", pprint.pformat(tests))
125 unittest.installHandler()
125 suite = unittest.TestSuite() 126 suite = unittest.TestSuite()
126 loader = unittest.TestLoader() 127 loader = unittest.TestLoader()
127 result = unittest.TestResult() 128 result = unittest.TestResult()