summaryrefslogtreecommitdiffstats
path: root/meta/classes/testexport.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/testexport.bbclass')
-rw-r--r--meta/classes/testexport.bbclass5
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: