bitbake: toaster/tts: Fix tests

(Bitbake rev: f4257f8df3be0627bdc7209fe34d674c42baf8d2)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandru DAMIAN 2015-05-15 13:15:08 +01:00 committed by Richard Purdie
parent 356809ff40
commit 29143915ae
4 changed files with 3 additions and 5 deletions

View File

@ -1,2 +0,0 @@
michaelw/toaster-frontend-cleanups|PENDING
adamian/test_0|PENDING

View File

@ -87,7 +87,7 @@ if __name__ == "__main__":
errtext = None
out = None
try:
out = shellutils.run_shell_cmd("./runner.py %s" % next_task)
out = shellutils.run_shell_cmd("%s %s" % (os.path.join(os.path.dirname(__file__), "runner.py"), next_task))
pass
except ShellCmdException as e:
print("Failed while running the test runner: %s", e)

View File

@ -168,7 +168,7 @@ def read_settings():
# cleanup !
def clean_up(testdir):
# TODO: delete the test dir
#run_shell_cmd("rm -rf -- '%s'" % testdir)
run_shell_cmd("rm -rf -- '%s'" % testdir)
pass
if __name__ == "__main__":

View File

@ -44,7 +44,7 @@ class TestPySystemStart(unittest.TestCase):
def test_start_interactive_mode(self):
try:
run_shell_cmd("bash -c 'source %s/oe-init-build-env && source toaster start && source toaster stop'" % config.testdir, config.testdir)
run_shell_cmd("bash -c 'source %s/oe-init-build-env && source toaster start webport=56789 && source toaster stop'" % config.testdir, config.testdir)
except ShellCmdException as e:
self.fail("Failed starting interactive mode: %s" % (e))