mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
testexport.bbclass: Update to use python3
Remove deprecated attributes in order to use python3. runexported was changed to use python3. [YOCTO #9702] (From OE-Core rev: 9129af6dc421455c0253be313bf5781b913dc5fd) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1a2a69e042
commit
91a7f54e08
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
# Copyright (C) 2013 Intel Corporation
|
||||
|
||||
Reference in New Issue
Block a user