diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2016-06-02 13:09:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:12:14 +0100 |
commit | 9129af6dc421455c0253be313bf5781b913dc5fd (patch) | |
tree | 97f8e09b2b3dcfb1da1ae3ca3f1c3e22c7fc5bba /meta/classes | |
parent | 5d73c59d0c9af90774411f981a3b0b7e09ce6d9e (diff) | |
download | openembedded-core-9129af6dc421455c0253be313bf5781b913dc5fd.tar.gz openembedded-core-9129af6dc421455c0253be313bf5781b913dc5fd.tar.bz2 openembedded-core-9129af6dc421455c0253be313bf5781b913dc5fd.zip |
testexport.bbclass: Update to use python3
Remove deprecated attributes in order to use python3.
runexported was changed to use python3.
[YOCTO #9702]
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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): if not os.path.exists(target_folder): shutil.copytree(foldername, target_folder) if not isfolder: - shutil.copy2(mod.filename, os.path.join(exportpath, "oeqa/runtime")) + shutil.copy2(mod.path, os.path.join(exportpath, "oeqa/runtime")) # copy __init__.py files - oeqadir = pkgutil.get_loader("oeqa").filename + oeqadir = os.path.dirname(pkgutil.get_loader("oeqa").path) shutil.copy2(os.path.join(oeqadir, "__init__.py"), os.path.join(exportpath, "oeqa")) shutil.copy2(os.path.join(oeqadir, "runtime/__init__.py"), os.path.join(exportpath, "oeqa/runtime")) # copy oeqa/oetest.py and oeqa/runexported.py |