diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-12-05 17:04:42 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | ba1aec3407e38f4dc4141e4d6300b3d538dc9dd3 (patch) | |
tree | 43114a5dafed2bc67ca451ff31432f5b98065780 /meta/classes/testexport.bbclass | |
parent | e5f05409d073f089f4e1a78197e5c6cae6e04809 (diff) | |
download | poky-ba1aec3407e38f4dc4141e4d6300b3d538dc9dd3.tar.gz |
oeqa: Fix files handling on runtime tests.
Common files was move to oeqa/files from oeqa/runtime/files
because the same files are used across Runtime,SDK,eSDK tests.
(From OE-Core rev: f099302efe8f222c3e4ae3604429f5ede4fd8c67)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testexport.bbclass')
-rw-r--r-- | meta/classes/testexport.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index e287f5a913..00cf24e735 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass | |||
@@ -87,6 +87,7 @@ def exportTests(d,tc): | |||
87 | # - the contents of oeqa/utils and oeqa/runtime/files | 87 | # - the contents of oeqa/utils and oeqa/runtime/files |
88 | # - oeqa/oetest.py and oeqa/runexport.py (this will get copied to exportpath not exportpath/oeqa) | 88 | # - oeqa/oetest.py and oeqa/runexport.py (this will get copied to exportpath not exportpath/oeqa) |
89 | # - __init__.py files | 89 | # - __init__.py files |
90 | bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/files")) | ||
90 | bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/runtime/files")) | 91 | bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/runtime/files")) |
91 | bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/utils")) | 92 | bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/utils")) |
92 | # copy test modules, this should cover tests in other layers too | 93 | # copy test modules, this should cover tests in other layers too |
@@ -124,6 +125,10 @@ def exportTests(d,tc): | |||
124 | for f in files: | 125 | for f in files: |
125 | if f.endswith(".py"): | 126 | if f.endswith(".py"): |
126 | shutil.copy2(os.path.join(root, f), os.path.join(exportpath, "oeqa/utils")) | 127 | shutil.copy2(os.path.join(root, f), os.path.join(exportpath, "oeqa/utils")) |
128 | # copy oeqa/files/* | ||
129 | for root, dirs, files in os.walk(os.path.join(oeqadir, "files")): | ||
130 | for f in files: | ||
131 | shutil.copy2(os.path.join(root, f), os.path.join(exportpath, "oeqa/files")) | ||
127 | # copy oeqa/runtime/files/* | 132 | # copy oeqa/runtime/files/* |
128 | for root, dirs, files in os.walk(os.path.join(oeqadir, "runtime/files")): | 133 | for root, dirs, files in os.walk(os.path.join(oeqadir, "runtime/files")): |
129 | for f in files: | 134 | for f in files: |