[oe-commits] [openembedded-core] 17/61: ext-sdk-prepare: Catch setscene tasks which should have run but didn't

git at git.openembedded.org git at git.openembedded.org
Fri Mar 4 17:13:08 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 16d8bb9e33272dd90722d1cc9d17adcfe9bc0c68
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Mar 4 16:22:26 2016 +0000

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/files/ext-sdk-prepare.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py
index 143e0fe..c99e34f 100644
--- a/meta/files/ext-sdk-prepare.py
+++ b/meta/files/ext-sdk-prepare.py
@@ -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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list