]> code.ossystems Code Review - openembedded-core.git/commitdiff
testsdk.bbclass: print which file is not found
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 14 Nov 2016 14:34:04 +0000 (06:34 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Nov 2016 11:02:28 +0000 (11:02 +0000)
This is helpful when debug.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/testsdk.bbclass

index 43342b1f251a8e1a84dc0c9b7ae028c94c64a3cc..06b4c5034fff8bd67cde6f7b6cc713565650f2c3 100644 (file)
@@ -59,7 +59,7 @@ def testsdk_main(d):
 
     tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh")
     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/")
     bb.utils.remove(sdktestdir, True)
@@ -109,8 +109,8 @@ def testsdkext_main(d):
 
     tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh")
     if not os.path.exists(tcname):
-        bb.fatal("The toolchain ext is not built. Build it before running the" \
-                 " tests: 'bitbake <image> -c populate_sdk_ext' .")
+        bb.fatal("The toolchain ext %s is not built. Build it before running the" \
+                 " tests: 'bitbake <image> -c populate_sdk_ext' ." % tcname)
 
     testdir = d.expand("${WORKDIR}/testsdkext/")
     bb.utils.remove(testdir, True)