diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2015-05-20 22:11:06 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-22 13:29:47 +0100 |
commit | 9d8c61acd0b3470bd4e64664aa85e475ec07d647 (patch) | |
tree | d2b012afe99e707a7d1e82c77aa7ea6d34eae993 /meta/classes/sanity.bbclass | |
parent | 45bf783a23932d25a542e0f914297eec74ffc2f0 (diff) | |
download | poky-9d8c61acd0b3470bd4e64664aa85e475ec07d647.tar.gz |
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>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index e7381107ad..32e9b82ff3 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -491,6 +491,8 @@ def sanity_handle_abichanges(status, d): | |||
491 | # | 491 | # |
492 | # Check the 'ABI' of TMPDIR | 492 | # Check the 'ABI' of TMPDIR |
493 | # | 493 | # |
494 | import subprocess | ||
495 | |||
494 | current_abi = d.getVar('OELAYOUT_ABI', True) | 496 | current_abi = d.getVar('OELAYOUT_ABI', True) |
495 | abifile = d.getVar('SANITY_ABIFILE', True) | 497 | abifile = d.getVar('SANITY_ABIFILE', True) |
496 | if os.path.exists(abifile): | 498 | if os.path.exists(abifile): |
@@ -824,8 +826,6 @@ def check_sanity_everybuild(status, d): | |||
824 | status.addresult("Error, IMAGE_FSTYPES vmdk and live can't be built together\n") | 826 | status.addresult("Error, IMAGE_FSTYPES vmdk and live can't be built together\n") |
825 | 827 | ||
826 | def check_sanity(sanity_data): | 828 | def check_sanity(sanity_data): |
827 | import subprocess | ||
828 | |||
829 | class SanityStatus(object): | 829 | class SanityStatus(object): |
830 | def __init__(self): | 830 | def __init__(self): |
831 | self.messages = "" | 831 | self.messages = "" |