diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/imagetest-qemu.bbclass | 9 | ||||
-rw-r--r-- | meta/recipes-core/meta/meta-toolchain.bb | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/meta/classes/imagetest-qemu.bbclass b/meta/classes/imagetest-qemu.bbclass index daeb8d8c9c..e259ae9baa 100644 --- a/meta/classes/imagetest-qemu.bbclass +++ b/meta/classes/imagetest-qemu.bbclass | |||
@@ -27,6 +27,7 @@ def qemuimagetest_main(d): | |||
27 | import sys | 27 | import sys |
28 | import re | 28 | import re |
29 | import os | 29 | import os |
30 | import shutil | ||
30 | 31 | ||
31 | """ | 32 | """ |
32 | Test Controller for automated testing. | 33 | Test Controller for automated testing. |
@@ -72,6 +73,7 @@ def qemuimagetest_main(d): | |||
72 | os.environ["TEST_STATUS"] = bb.data.getVar("TEST_STATUS", d, True) | 73 | os.environ["TEST_STATUS"] = bb.data.getVar("TEST_STATUS", d, True) |
73 | os.environ["TARGET_IPSAVE"] = bb.data.getVar("TARGET_IPSAVE", d, True) | 74 | os.environ["TARGET_IPSAVE"] = bb.data.getVar("TARGET_IPSAVE", d, True) |
74 | os.environ["TEST_SERIALIZE"] = bb.data.getVar("TEST_SERIALIZE", d, True) | 75 | os.environ["TEST_SERIALIZE"] = bb.data.getVar("TEST_SERIALIZE", d, True) |
76 | os.environ["SDK_NAME"] = bb.data.getVar("SDK_NAME", d, True) | ||
75 | 77 | ||
76 | """run Test Case""" | 78 | """run Test Case""" |
77 | bb.note("Run %s test in scenario %s" % (case, scen)) | 79 | bb.note("Run %s test in scenario %s" % (case, scen)) |
@@ -120,7 +122,10 @@ def qemuimagetest_main(d): | |||
120 | if os.path.isdir(tmppath): | 122 | if os.path.isdir(tmppath): |
121 | for f in os.listdir(tmppath): | 123 | for f in os.listdir(tmppath): |
122 | tmpfile = os.path.join(tmppath, f) | 124 | tmpfile = os.path.join(tmppath, f) |
123 | os.remove(tmpfile) | 125 | if os.path.isfile(tmpfile): |
126 | os.remove(tmpfile) | ||
127 | elif os.path.isdir(tmpfile): | ||
128 | shutil.rmtree(tmpfile, True) | ||
124 | 129 | ||
125 | """Before running testing, clean temp folder first""" | 130 | """Before running testing, clean temp folder first""" |
126 | clean_tmp() | 131 | clean_tmp() |
@@ -154,7 +159,7 @@ def qemuimagetest_main(d): | |||
154 | os.system("touch %s" % resultfile) | 159 | os.system("touch %s" % resultfile) |
155 | os.symlink(resultfile, sresultfile) | 160 | os.symlink(resultfile, sresultfile) |
156 | f = open(sresultfile, "a") | 161 | f = open(sresultfile, "a") |
157 | f.write("\tTest Result for %s\n" % machine) | 162 | f.write("\tTest Result for %s %s\n" % (machine, pname)) |
158 | f.write("\t%-15s%-15s%-15s%-15s\n" % ("Testcase", "PASS", "FAIL", "NORESULT")) | 163 | f.write("\t%-15s%-15s%-15s%-15s\n" % ("Testcase", "PASS", "FAIL", "NORESULT")) |
159 | f.close() | 164 | f.close() |
160 | 165 | ||
diff --git a/meta/recipes-core/meta/meta-toolchain.bb b/meta/recipes-core/meta/meta-toolchain.bb index 94c8a91a72..ab98bf99b2 100644 --- a/meta/recipes-core/meta/meta-toolchain.bb +++ b/meta/recipes-core/meta/meta-toolchain.bb | |||
@@ -6,6 +6,7 @@ PR = "r4" | |||
6 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ |
7 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 7 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
8 | 8 | ||
9 | inherit populate_sdk | 9 | IMAGETEST ?= "dummy" |
10 | inherit populate_sdk imagetest-${IMAGETEST} | ||
10 | 11 | ||
11 | CONFIG_SITE := "${@siteinfo_get_files(d)}" | 12 | CONFIG_SITE := "${@siteinfo_get_files(d)}" |