mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e5f05409d0
commit
ba1aec3407
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user