From 3480be741ec7bc8fe5b8684e1926447183c6f2c2 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Wed, 20 May 2015 15:41:24 +0100 Subject: bitbake: bldcontrol: Fix all failing unit tests This fixes the unit tests for the bldcontrol it requires the implementation of a new Exception type so that a known Exception can be handled. Also fixed is the path to the toaster conf files so that the test doesn't need to be run from the top level directory and the ability to specify the values of TTS_SOURCE_DIR and TTS_BUILD_DIR and TTS_TEST_ADDRESS used for testing. Edited by Alex Damian to correct the rebasing of the localhostbecontroller.py file. (Bitbake rev: c17933271cd273a346115c2ee0b6695ff3f981ce) Signed-off-by: Michael Wood Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/bldcontrol/sshbecontroller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/bldcontrol/sshbecontroller.py') diff --git a/bitbake/lib/toaster/bldcontrol/sshbecontroller.py b/bitbake/lib/toaster/bldcontrol/sshbecontroller.py index 11ad08d440..29ed0a770f 100644 --- a/bitbake/lib/toaster/bldcontrol/sshbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/sshbecontroller.py @@ -31,6 +31,9 @@ from toastermain import settings from bbcontroller import BuildEnvironmentController, ShellCmdException, BuildSetupException +class NotImplementedException(Exception): + pass + def DN(path): return "/".join(path.split("/")[0:-1]) @@ -125,7 +128,7 @@ class SSHBEController(BuildEnvironmentController): # set layers in the layersource - raise Exception("Not implemented: SSH setLayers") + raise NotImplementedException("Not implemented: SSH setLayers") # 3. configure the build environment, so we have a conf/bblayers.conf assert self.pokydirname is not None self._setupBE() -- cgit v1.2.3-54-g00ecf