mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
scripts/oe-check-sstate: cleanup
The scriptutils import isn't used, there's no need to run bitbake in a shell environment, and invoke bitbake as a list instead of a string. (From OE-Core rev: 663aa284adf312eb5c8a471e5dbff2634e87897d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c1304a0231
commit
4fd15f4e3a
@@ -18,7 +18,6 @@ import re
|
|||||||
scripts_path = os.path.dirname(os.path.realpath(__file__))
|
scripts_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
lib_path = scripts_path + '/lib'
|
lib_path = scripts_path + '/lib'
|
||||||
sys.path = sys.path + [lib_path]
|
sys.path = sys.path + [lib_path]
|
||||||
import scriptutils
|
|
||||||
import scriptpath
|
import scriptpath
|
||||||
scriptpath.add_bitbake_lib_path()
|
scriptpath.add_bitbake_lib_path()
|
||||||
import argparse_oe
|
import argparse_oe
|
||||||
@@ -51,11 +50,8 @@ def check(args):
|
|||||||
env['TMPDIR:forcevariable'] = tmpdir
|
env['TMPDIR:forcevariable'] = tmpdir
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(
|
cmd = ['bitbake', '--dry-run'] + args.target
|
||||||
'bitbake -n %s' % ' '.join(args.target),
|
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env)
|
||||||
stderr=subprocess.STDOUT,
|
|
||||||
env=env,
|
|
||||||
shell=True)
|
|
||||||
|
|
||||||
task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')
|
task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')
|
||||||
tasks = []
|
tasks = []
|
||||||
|
|||||||
Reference in New Issue
Block a user