summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-11-14 06:34:04 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-23 11:10:13 +0000
commitddfc3afced01490748bbbe61baca8f61b5f85844 (patch)
treeed1de408c9416bcb03b70d67e78deb77a5612633 /meta/classes
parent37da91e4fcdea42510e5e50873e92c3085160403 (diff)
downloadpoky-ddfc3afced01490748bbbe61baca8f61b5f85844.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/testsdk.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 43342b1f25..06b4c5034f 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -59,7 +59,7 @@ def testsdk_main(d):
59 59
60 tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh") 60 tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh")
61 if not os.path.exists(tcname): 61 if not os.path.exists(tcname):
62 bb.fatal("The toolchain is not built. Build it before running the tests: 'bitbake <image> -c populate_sdk' .") 62 bb.fatal("The toolchain %s is not built. Build it before running the tests: 'bitbake <image> -c populate_sdk' ." % tcname)
63 63
64 sdktestdir = d.expand("${WORKDIR}/testimage-sdk/") 64 sdktestdir = d.expand("${WORKDIR}/testimage-sdk/")
65 bb.utils.remove(sdktestdir, True) 65 bb.utils.remove(sdktestdir, True)
@@ -109,8 +109,8 @@ def testsdkext_main(d):
109 109
110 tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh") 110 tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh")
111 if not os.path.exists(tcname): 111 if not os.path.exists(tcname):
112 bb.fatal("The toolchain ext is not built. Build it before running the" \ 112 bb.fatal("The toolchain ext %s is not built. Build it before running the" \
113 " tests: 'bitbake <image> -c populate_sdk_ext' .") 113 " tests: 'bitbake <image> -c populate_sdk_ext' ." % tcname)
114 114
115 testdir = d.expand("${WORKDIR}/testsdkext/") 115 testdir = d.expand("${WORKDIR}/testsdkext/")
116 bb.utils.remove(testdir, True) 116 bb.utils.remove(testdir, True)