diff options
Diffstat (limited to 'meta/classes/testsdk.bbclass')
-rw-r--r-- | meta/classes/testsdk.bbclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 18f7678d37..0b8716edb5 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass | |||
@@ -113,10 +113,18 @@ def testsdkext_main(d): | |||
113 | testdir = d.expand("${WORKDIR}/testsdkext/") | 113 | testdir = d.expand("${WORKDIR}/testsdkext/") |
114 | bb.utils.remove(testdir, True) | 114 | bb.utils.remove(testdir, True) |
115 | bb.utils.mkdirhier(testdir) | 115 | bb.utils.mkdirhier(testdir) |
116 | sdkdir = os.path.join(testdir, 'tc') | ||
116 | try: | 117 | try: |
117 | subprocess.check_output("%s -y -d %s/tc" % (tcname, testdir), shell=True) | 118 | subprocess.check_output("%s -y -d %s" % (tcname, sdkdir), shell=True) |
118 | except subprocess.CalledProcessError as e: | 119 | except subprocess.CalledProcessError as e: |
119 | bb.fatal("Couldn't install the SDK EXT:\n%s" % e.output.decode("utf-8")) | 120 | msg = "Couldn't install the extensible SDK:\n%s" % e.output.decode("utf-8") |
121 | logfn = os.path.join(sdkdir, 'preparing_build_system.log') | ||
122 | if os.path.exists(logfn): | ||
123 | msg += '\n\nContents of preparing_build_system.log:\n' | ||
124 | with open(logfn, 'r') as f: | ||
125 | for line in f: | ||
126 | msg += line | ||
127 | bb.fatal(msg) | ||
120 | 128 | ||
121 | try: | 129 | try: |
122 | bb.plain("Running SDK Compatibility tests ...") | 130 | bb.plain("Running SDK Compatibility tests ...") |