diff options
Diffstat (limited to 'meta/classes/testexport.bbclass')
-rw-r--r-- | meta/classes/testexport.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index e06c668280..51b7d93d2b 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass | |||
@@ -95,9 +95,9 @@ def exportTests(d,tc): | |||
95 | if not os.path.exists(target_folder): | 95 | if not os.path.exists(target_folder): |
96 | shutil.copytree(foldername, target_folder) | 96 | shutil.copytree(foldername, target_folder) |
97 | if not isfolder: | 97 | if not isfolder: |
98 | shutil.copy2(mod.filename, os.path.join(exportpath, "oeqa/runtime")) | 98 | shutil.copy2(mod.path, os.path.join(exportpath, "oeqa/runtime")) |
99 | # copy __init__.py files | 99 | # copy __init__.py files |
100 | oeqadir = pkgutil.get_loader("oeqa").filename | 100 | oeqadir = os.path.dirname(pkgutil.get_loader("oeqa").path) |
101 | shutil.copy2(os.path.join(oeqadir, "__init__.py"), os.path.join(exportpath, "oeqa")) | 101 | shutil.copy2(os.path.join(oeqadir, "__init__.py"), os.path.join(exportpath, "oeqa")) |
102 | shutil.copy2(os.path.join(oeqadir, "runtime/__init__.py"), os.path.join(exportpath, "oeqa/runtime")) | 102 | shutil.copy2(os.path.join(oeqadir, "runtime/__init__.py"), os.path.join(exportpath, "oeqa/runtime")) |
103 | # copy oeqa/oetest.py and oeqa/runexported.py | 103 | # copy oeqa/oetest.py and oeqa/runexported.py |