mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 19:32:30 +00:00
ext-sdk-prepare: Catch setscene tasks which should have run but didn't
When installing the eSDK, if setscene task fail for some reason, the tests would ignore this. This is bad since we assume they're working. This adds some sanity test code which detects if setscene tasks are needing to run and errors if there are any. (From OE-Core rev: 7ea670c3b00439ca5eeb6ae1efd475f0954268b7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d8efd2e307
commit
6b564ae35d
@ -72,12 +72,14 @@ def main():
|
||||
else:
|
||||
line = line.split('Running', 1)[-1]
|
||||
unexpected.append(line.rstrip())
|
||||
elif 'Running setscene' in line:
|
||||
unexpected.append(line.rstrip())
|
||||
except subprocess.CalledProcessError as e:
|
||||
print('ERROR: Failed to execute dry-run:\n%s' % e.output)
|
||||
return 1
|
||||
|
||||
if unexpected:
|
||||
print('ERROR: Unexpected tasks left over to be executed:')
|
||||
print('ERROR: Unexpected tasks or setscene left over to be executed:')
|
||||
for line in unexpected:
|
||||
print(' ' + line)
|
||||
return 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user