oeqa/selftest/buildoptions: Use the correct script for cleaning the workdir

The script 'cleanupworkdir' does not exit, so changing it to 'cleanup-workdir'.

(From OE-Core rev: 9a2292a995de9f93e742bda6c465daa854279fed)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Leonardo Sandoval 2015-10-14 05:37:55 +00:00 committed by Richard Purdie
parent 94decbce39
commit b8a9728395
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class BuildImagesTest(oeSelfTest):
This method is used to test the build of directfb image for arm arch. This method is used to test the build of directfb image for arm arch.
In essence we build a coreimagedirectfb and test the exitcode of bitbake that in case of success is 0. In essence we build a coreimagedirectfb and test the exitcode of bitbake that in case of success is 0.
""" """
self.add_command_to_tearDown('cleanupworkdir') self.add_command_to_tearDown('cleanup-workdir')
self.write_config("DISTRO_FEATURES_remove = \"x11\"\nDISTRO_FEATURES_append = \" directfb\"\nMACHINE ??= \"qemuarm\"") self.write_config("DISTRO_FEATURES_remove = \"x11\"\nDISTRO_FEATURES_append = \" directfb\"\nMACHINE ??= \"qemuarm\"")
res = bitbake("core-image-directfb", ignore_status=True) res = bitbake("core-image-directfb", ignore_status=True)
self.assertEqual(res.status, 0, "\ncoreimagedirectfb failed to build. Please check logs for further details.\nbitbake output %s" % res.output) self.assertEqual(res.status, 0, "\ncoreimagedirectfb failed to build. Please check logs for further details.\nbitbake output %s" % res.output)
@ -136,7 +136,7 @@ class ArchiverTest(oeSelfTest):
""" """
Test for archiving the work directory and exporting the source files. Test for archiving the work directory and exporting the source files.
""" """
self.add_command_to_tearDown('cleanupworkdir') self.add_command_to_tearDown('cleanup-workdir')
self.write_config("INHERIT = \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"") self.write_config("INHERIT = \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"")
res = bitbake("xcursor-transparent-theme", ignore_status=True) res = bitbake("xcursor-transparent-theme", ignore_status=True)
self.assertEqual(res.status, 0, "\nCouldn't build xcursortransparenttheme.\nbitbake output %s" % res.output) self.assertEqual(res.status, 0, "\nCouldn't build xcursortransparenttheme.\nbitbake output %s" % res.output)