summaryrefslogtreecommitdiffstats
path: root/scripts/oe-check-sstate
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-check-sstate')
-rwxr-xr-xscripts/oe-check-sstate14
1 files changed, 5 insertions, 9 deletions
diff --git a/scripts/oe-check-sstate b/scripts/oe-check-sstate
index ca249ca67b..0d171c4463 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
@@ -47,17 +46,14 @@ def check(args):
47 try: 46 try:
48 env = os.environ.copy() 47 env = os.environ.copy()
49 if not args.same_tmpdir: 48 if not args.same_tmpdir:
50 env['BB_ENV_EXTRAWHITE'] = env.get('BB_ENV_EXTRAWHITE', '') + ' TMPDIR_forcevariable' 49 env['BB_ENV_PASSTHROUGH_ADDITIONS'] = env.get('BB_ENV_PASSTHROUGH_ADDITIONS', '') + ' TMPDIR:forcevariable'
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', '--runall=build'] + 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(r'NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')
61 tasks = [] 57 tasks = []
62 for line in output.decode('utf-8').splitlines(): 58 for line in output.decode('utf-8').splitlines():
63 res = task_re.match(line) 59 res = task_re.match(line)