[OE-core] [PATCH 30/36] selftest: do not perform a full build in test_continue

Alexander Kanavin alexander.kanavin at linux.intel.com
Mon Feb 13 16:02:20 UTC 2017


On 02/13/2017 05:36 PM, Burton, Ross wrote:
>              runCmd('bitbake -c cleanall man xcursor-transparent-theme')
>     -        result = runCmd('bitbake man xcursor-transparent-theme -k',
>     ignore_status=True)
>     +        result = runCmd('bitbake -c unpack -k man
>     xcursor-transparent-theme', ignore_status=True)
>
>
> It's still doing a cleanall, which is removing stuff from DL_DIR.
>
> If the test adds a function between fetch and unpack then it won't need
> to do anything apart from bitbake -c unpack -f to run the test, and then
> a cleanup -cclean to remove the tainted hashes.

The test is forcing its own private DL_DIR, so I really don't see why we 
should be concerned about avoiding doing cleanall:

     @testcase(1035)
     def test_continue(self):
         self.write_config("""DL_DIR = \"${TOPDIR}/download-selftest\"
SSTATE_DIR = \"${TOPDIR}/download-selftest\"
INHERIT_remove = \"report-error\"
""")


Alex



More information about the Openembedded-core mailing list