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:03:55 +0000 |
commit | f099302efe8f222c3e4ae3604429f5ede4fd8c67 (patch) | |
tree | 9386bb02b74d3e50a7598147c172c65a2cf888bf /meta/classes/testexport.bbclass | |
parent | e275f29de500a338a02402ecc570405309963b35 (diff) | |
download | openembedded-core-contrib-f099302efe8f222c3e4ae3604429f5ede4fd8c67.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.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
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): # - the contents of oeqa/utils and oeqa/runtime/files # - oeqa/oetest.py and oeqa/runexport.py (this will get copied to exportpath not exportpath/oeqa) # - __init__.py files + bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/files")) bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/runtime/files")) bb.utils.mkdirhier(os.path.join(exportpath, "oeqa/utils")) # copy test modules, this should cover tests in other layers too @@ -124,6 +125,10 @@ def exportTests(d,tc): for f in files: if f.endswith(".py"): shutil.copy2(os.path.join(root, f), os.path.join(exportpath, "oeqa/utils")) + # copy oeqa/files/* + for root, dirs, files in os.walk(os.path.join(oeqadir, "files")): + for f in files: + shutil.copy2(os.path.join(root, f), os.path.join(exportpath, "oeqa/files")) # copy oeqa/runtime/files/* for root, dirs, files in os.walk(os.path.join(oeqadir, "runtime/files")): for f in files: |