summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/testimage.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 19a37cb037..d4263df323 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -375,7 +375,10 @@ def testsdk_main(d):
375 sdktestdir = d.expand("${WORKDIR}/testimage-sdk/") 375 sdktestdir = d.expand("${WORKDIR}/testimage-sdk/")
376 bb.utils.remove(sdktestdir, True) 376 bb.utils.remove(sdktestdir, True)
377 bb.utils.mkdirhier(sdktestdir) 377 bb.utils.mkdirhier(sdktestdir)
378 subprocess.call("cd %s; %s <<EOF\n./tc\nY\nEOF" % (sdktestdir, tcname), shell=True) 378 try:
379 subprocess.check_output("cd %s; %s <<EOF\n./tc\nY\nEOF" % (sdktestdir, tcname), shell=True)
380 except subprocess.CalledProcessError as e:
381 bb.fatal("Couldn't install the SDK:\n%s" % e.output)
379 382
380 try: 383 try:
381 targets = glob.glob(d.expand(sdktestdir + "/tc/environment-setup-*")) 384 targets = glob.glob(d.expand(sdktestdir + "/tc/environment-setup-*"))