mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
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:
committed by
Richard Purdie
parent
356809ff40
commit
29143915ae
@@ -1,2 +0,0 @@
|
||||
michaelw/toaster-frontend-cleanups|PENDING
|
||||
adamian/test_0|PENDING
|
||||
@@ -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)
|
||||
|
||||
@@ -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__":
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user