mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
bitbake: toaster: tts: make sure to import data
Importing data from the layer index should be part of the setup because otherwise we have no reliable database configuration. This patch selects the first option for importing the database configuration file. (Bitbake rev: 86a69d294ace41bd109db97b753554ccc8f3dac0) 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>
This commit is contained in:
committed by
Richard Purdie
parent
ada494d3dd
commit
e6419ccd93
@@ -62,11 +62,12 @@ class TestHTML5Compliance(unittest.TestCase):
|
||||
self.cleanup_database = False
|
||||
os.chdir(self.crtdir)
|
||||
if not os.path.exists(os.path.join(self.crtdir, "toaster.sqlite")):
|
||||
self.cleanup_database = False
|
||||
self.cleanup_database = True
|
||||
run_shell_cmd("%s/bitbake/lib/toaster/manage.py syncdb --noinput" % config.TESTDIR)
|
||||
run_shell_cmd("%s/bitbake/lib/toaster/manage.py migrate orm" % config.TESTDIR)
|
||||
run_shell_cmd("%s/bitbake/lib/toaster/manage.py migrate bldcontrol" % config.TESTDIR)
|
||||
run_shell_cmd("%s/bitbake/lib/toaster/manage.py loadconf %s/meta-yocto/conf/toasterconf.json" % (config.TESTDIR, config.TESTDIR))
|
||||
run_shell_cmd("%s/bitbake/lib/toaster/manage.py lsupdates" % config.TESTDIR)
|
||||
|
||||
setup = pexpect.spawn("%s/bitbake/lib/toaster/manage.py checksettings" % config.TESTDIR)
|
||||
setup.logfile = sys.stdout
|
||||
|
||||
Reference in New Issue
Block a user