mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
testsdk.bbclass: print which file is not found
This is helpful when debug. (From OE-Core rev: eef945787b5717bbb5d3bbddc446d4da86e3eb62) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
37da91e4fc
commit
ddfc3afced
@@ -59,7 +59,7 @@ def testsdk_main(d):
|
|||||||
|
|
||||||
tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh")
|
tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh")
|
||||||
if not os.path.exists(tcname):
|
if not os.path.exists(tcname):
|
||||||
bb.fatal("The toolchain is not built. Build it before running the tests: 'bitbake <image> -c populate_sdk' .")
|
bb.fatal("The toolchain %s is not built. Build it before running the tests: 'bitbake <image> -c populate_sdk' ." % tcname)
|
||||||
|
|
||||||
sdktestdir = d.expand("${WORKDIR}/testimage-sdk/")
|
sdktestdir = d.expand("${WORKDIR}/testimage-sdk/")
|
||||||
bb.utils.remove(sdktestdir, True)
|
bb.utils.remove(sdktestdir, True)
|
||||||
@@ -109,8 +109,8 @@ def testsdkext_main(d):
|
|||||||
|
|
||||||
tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh")
|
tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh")
|
||||||
if not os.path.exists(tcname):
|
if not os.path.exists(tcname):
|
||||||
bb.fatal("The toolchain ext is not built. Build it before running the" \
|
bb.fatal("The toolchain ext %s is not built. Build it before running the" \
|
||||||
" tests: 'bitbake <image> -c populate_sdk_ext' .")
|
" tests: 'bitbake <image> -c populate_sdk_ext' ." % tcname)
|
||||||
|
|
||||||
testdir = d.expand("${WORKDIR}/testsdkext/")
|
testdir = d.expand("${WORKDIR}/testsdkext/")
|
||||||
bb.utils.remove(testdir, True)
|
bb.utils.remove(testdir, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user