mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
sanity.bbclass: import subprocess in correct function
check_sanity() no longer needs the subprocess module but sanity_handle_abichanges() does use subprocess.call(). (From OE-Core rev: 469b53fb3bb94c7e5e9fb53d07cec2292b13c87d) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
45bf783a23
commit
9d8c61acd0
@@ -491,6 +491,8 @@ def sanity_handle_abichanges(status, d):
|
|||||||
#
|
#
|
||||||
# Check the 'ABI' of TMPDIR
|
# Check the 'ABI' of TMPDIR
|
||||||
#
|
#
|
||||||
|
import subprocess
|
||||||
|
|
||||||
current_abi = d.getVar('OELAYOUT_ABI', True)
|
current_abi = d.getVar('OELAYOUT_ABI', True)
|
||||||
abifile = d.getVar('SANITY_ABIFILE', True)
|
abifile = d.getVar('SANITY_ABIFILE', True)
|
||||||
if os.path.exists(abifile):
|
if os.path.exists(abifile):
|
||||||
@@ -824,8 +826,6 @@ def check_sanity_everybuild(status, d):
|
|||||||
status.addresult("Error, IMAGE_FSTYPES vmdk and live can't be built together\n")
|
status.addresult("Error, IMAGE_FSTYPES vmdk and live can't be built together\n")
|
||||||
|
|
||||||
def check_sanity(sanity_data):
|
def check_sanity(sanity_data):
|
||||||
import subprocess
|
|
||||||
|
|
||||||
class SanityStatus(object):
|
class SanityStatus(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.messages = ""
|
self.messages = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user