Files
poky/bitbake/lib/toaster/tests/builds
Marlon Rodriguez Garcia 799c131d92 bitbake: toaster: remove test and update setup to avoid rebuilding image
Update build test to fix setUp, by including the built, the system was rebuilding the image on every test, causing the database to lock
Delete test for unique order, this test was the only test using the self.built element and breaking the system.

(Bitbake rev: 9f1ad015051d4a4b363787c4a1f2b943d55eb8cb)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:18 +00:00
..

Running build tests

These tests are to test the running of builds and the data produced by the builds. Your oe build environment must be sourced/initialised for these tests to run.

The simplest way to run the tests are the following commands:

$ . oe-init-build-env $ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory $ DJANGO_SETTINGS_MODULE='toastermain.settings_test' ./manage.py test tests.builds

Optional environment variables:

  • TOASTER_DIR (where toaster keeps it's artifacts)
  • TOASTER_CONF a path to the toasterconf.json file. This will need to be set if you don't execute the tests from toaster's own directory.