summaryrefslogtreecommitdiffstats
path: root/scripts/oe-check-sstate
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-10-10 12:42:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-25 13:42:02 +0100
commit4fd15f4e3ad50ba1830b20a5e339d75ebb74a4ce (patch)
tree7ff1d6851d59e03f45142acbf979f0a56d0de406 /scripts/oe-check-sstate
parentc1304a0231fd79f90a6a05750757689a5c4cc1eb (diff)
downloadpoky-4fd15f4e3ad50ba1830b20a5e339d75ebb74a4ce.tar.gz
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>
Diffstat (limited to 'scripts/oe-check-sstate')
-rwxr-xr-xscripts/oe-check-sstate8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/oe-check-sstate b/scripts/oe-check-sstate
index f4cc5869de..7f9f835da4 100755
--- a/scripts/oe-check-sstate
+++ b/scripts/oe-check-sstate
@@ -18,7 +18,6 @@ import re
18scripts_path = os.path.dirname(os.path.realpath(__file__)) 18scripts_path = os.path.dirname(os.path.realpath(__file__))
19lib_path = scripts_path + '/lib' 19lib_path = scripts_path + '/lib'
20sys.path = sys.path + [lib_path] 20sys.path = sys.path + [lib_path]
21import scriptutils
22import scriptpath 21import scriptpath
23scriptpath.add_bitbake_lib_path() 22scriptpath.add_bitbake_lib_path()
24import argparse_oe 23import argparse_oe
@@ -51,11 +50,8 @@ def check(args):
51 env['TMPDIR:forcevariable'] = tmpdir 50 env['TMPDIR:forcevariable'] = tmpdir
52 51
53 try: 52 try:
54 output = subprocess.check_output( 53 cmd = ['bitbake', '--dry-run'] + args.target
55 'bitbake -n %s' % ' '.join(args.target), 54 output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env)
56 stderr=subprocess.STDOUT,
57 env=env,
58 shell=True)
59 55
60 task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)') 56 task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')
61 tasks = [] 57 tasks = []